public function hasLoop() { $this->hasInstruction(array('For', 'Foreach', 'Dowhile', 'While')); return $this; }