Pretty sure this can be implemented much simpler, and in terms of the existing logic in the parent() method. Something like:

```php
return
    $path->hasAtoms() &&
    $this->normalizer()->normalize($this)->atoms() === $path->parent()->atoms();
```