public function hasChildren() { $item = $this->getOwner()->item($this->_position); return $item->hasChildNodes(); }