public function isAncestorOf(Hierarchy $element, LoaderInterface $loader = null)
    {
        return $loader !== null ? $element->isOffspringOf($this, $loader) : $element->isOffspringOf($this);
    }
public function isAncestorOf(Hierarchy $element, LoaderInterface $loader = null)
    {
        return $loader !== null ? $element->isOffspringOf($this, $loader) : $element->isOffspringOf($this);
    }
public function isAncestorOf ( Hierarchy $ element , LoaderInterface $ loader = null ) { return $ loader !== null ? $ element -> isOffspringOf ( $ this , $ loader ) : $ element -> isOffspringOf ( $ this ) ; }
Check if the current element is an ancestor of the specified element

@param $element Hierarchy The element to check
@param $loader LoaderInterface A loader instance that can be used to load additional instances
@return boolean True when the current Entity is an ancestor of $element, false otherwise
Check if the current element is an ancestor of the specified element