Metaregistrar\EPP\eppResponse::hasElement PHP Method

hasElement() public method

Checks and sees if an element is present using xpath
public hasElement ( array $matches ) : boolean
$matches array
return boolean
    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;
    }