/**
  * Is ancestor.
  *
  * @param  Model  $descendant
  * @return boolean
  * 
  * @throws \Langaner\MaterializedPath\Exceptions\ModelNotFoundException
  */
 public function isAncestorOf(Model $descendant)
 {
     if (!$this->exists) {
         throw new ModelNotFoundException('Model doesnt exist');
     }
     $path = $this->getTreePath() . (int) $this->getKey() . $this->separator;
     return strpos($descendant->getTreePath(), $path) !== false && $descendant->getTreePath() !== $this->getTreePath();
 }