protected static function evaluate($query, DOMElement $element)
	{
		$xpath = new DOMXPath($element->ownerDocument);

		return $xpath->evaluate('boolean(' . $query . ')', $element);
	}
protected static function evaluate($query, DOMElement $element)
	{
		$xpath = new DOMXPath($element->ownerDocument);

		return $xpath->evaluate('boolean(' . $query . ')', $element);
	}
protected static function evaluate ( $ query , DOMElement $ element ) { $ xpath = new DOMXPath ( $ element -> ownerDocument ) ; return $ xpath -> evaluate ( 'boolean(' . $ query . ')' , $ element ) ; }
Evaluate an XPath query using given element as context node

@param  string     $query   XPath query
@param  DOMElement $element Context node
@return bool
Evaluate an XPath query using given element as context node