private function getXPathFirstItem($query, $contextNode = null)
    {
        /** @var \DOMNodeList $tmp */
        $tmp = $this->getXPath()->query($query, $contextNode);

        return $tmp->length ? $tmp->item(0) : null;
    }