public hasChildNodes ( string $nodeTypeFilter = null ) : boolean | ||
$nodeTypeFilter | string | If specified, only nodes with that node type are considered |
return | boolean | TRUE if this node has child nodes, otherwise FALSE |
public function hasChildNodes($nodeTypeFilter = null)
{
return $this->getNumberOfChildNodes($nodeTypeFilter) > 0;
}