Neos.ContentRepository/Classes/Domain/Model/Node.php
protected function isNodePathAvailable(string $path): bool
    {
        $existingNodeDataArray = $this->nodeDataRepository->findByPathWithoutReduce($path, $this->context->getWorkspace());

        $nonMatchingNodeData = array_filter($existingNodeDataArray, function (NodeData $nodeData) {
            return ($nodeData->getIdentifier() !== $this->getIdentifier());
        });

        return ($nonMatchingNodeData === []);
    }
protected function isNodePathAvailable(string $path): bool
    {
        $existingNodeDataArray = $this->nodeDataRepository->findByPathWithoutReduce($path, $this->context->getWorkspace());

        $nonMatchingNodeData = array_filter($existingNodeDataArray, function (NodeData $nodeData) {
            return ($nodeData->getIdentifier() !== $this->getIdentifier());
        });

        return ($nonMatchingNodeData === []);
    }
protected function isNodePathAvailable ( string $ path ) : bool { $ existingNodeDataArray = $ this -> nodeDataRepository -> findByPathWithoutReduce ( $ path , $ this -> context -> getWorkspace ( ) ) ; $ nonMatchingNodeData = array_filter ( $ existingNodeDataArray , function ( NodeData $ nodeData ) { return ( $ nodeData -> getIdentifier ( ) !== $ this -> getIdentifier ( ) ) ; } ) ; return ( $ nonMatchingNodeData === [ ] ) ; }
Checks if the given node path is available for this node, so either no node with this path exists or an existing node has the same identifier.

@param string $path
@return boolean
Checks if the given node path is available for this node so either no node with this path exists or an existing node has the same identifier .