Well, getChildren will return $this->children, so yeah you can do return !empty($this->children)