protected function matches($selector, \DOMNode $context = NULL)
{
$check = $this->xpath->evaluate($this->prepareSelector($selector, self::CONTEXT_SELF), $context);
if ($check instanceof \DOMNodeList) {
return $check->length > 0;
} else {
return (bool) $check;
}
}