/** * @return bool */ public function hasChildren() { return !$this->children->isEmpty() ? true : false; }