public function hasElement($matches)
{
libxml_use_internal_errors(true);
$xpath = $this->xPath();
foreach ($matches as $match) {
$results = $xpath->query($match);
if ($results->length > 0) {
libxml_clear_errors();
return true;
}
}
libxml_clear_errors();
return false;
}