protected function getCurrentFrame() { if (empty($this->frames)) { array_push($this->frames, $this->getFrame()); } return end($this->frames); }