src/Templating/Helper/MenuHelper.php
public function isAncestor(ItemInterface $item, $depth = null)
    {
        return $this->matcher->isAncestor($item, $depth);
    }
public function isAncestor(ItemInterface $item, $depth = null)
    {
        return $this->matcher->isAncestor($item, $depth);
    }
public function isAncestor ( ItemInterface $ item , $ depth = null ) { return $ this -> matcher -> isAncestor ( $ item , $ depth ) ; }
Checks whether an item is the ancestor of a current item.

@param ItemInterface $item
@param integer       $depth The max depth to look for the item

@return boolean
Checks whether an item is the ancestor of a current item .