Likewise, this should be implemented in terms of isParentOf(). Something like:

```php
return
    $this->isParentOf($path) ||
    ($path->hasAtoms() && $this->isAncestorOf($path->parent()));
```