public function hasChildren() { return $this->valid() && $this->current() instanceof Element && NULL !== $this->current()->childNodes; }