public function firstChild() { reset($this->children); $key = key($this->children); return $this->getChild($key); }