src/PHPHtmlParser/Dom/AbstractNode.php
public function isAncestor(int $id): Bool
    {
        if ( ! is_null($this->getAncestor($id))) {
            return true;
        }

        return false;
    }
public function isAncestor(int $id): Bool
    {
        if ( ! is_null($this->getAncestor($id))) {
            return true;
        }

        return false;
    }
public function isAncestor ( int $ id ) : Bool { if ( ! is_null ( $ this -> getAncestor ( $ id ) ) ) { return true ; } return false ; }
Checks if the given node id is an ancestor of
the current node.

@param int $id
@return bool
Checks if the given node id is an ancestor of the current node .