public function isAncestorNodeOf($nodePathOrIdentifier) { $nodePath = $this->resolveNodePath($nodePathOrIdentifier); if (is_bool($nodePath)) { return $nodePath; } return substr($nodePath, 0, strlen($this->node->getPath())) === $this->node->getPath(); }