public function hasChildNodes($nodeTypeFilter = null) { return $this->getNumberOfChildNodes($nodeTypeFilter) > 0; }