src/Danmichaelo/QuiteSimpleXMLElement/QuiteSimpleXMLElement.php
public function has($path)
    {
        $x = $this->xpath($path);

        return count($x) ? true : false;
    }
public function has($path)
    {
        $x = $this->xpath($path);

        return count($x) ? true : false;
    }
public function has ( $ path ) { $ x = $ this -> xpath ( $ path ) ; return count ( $ x ) ? true : false ; }
Check if the document has at least one node matching an XPath query.

@param string $path
@return bool
Check if the document has at least one node matching an XPath query .