src/Sulu/Component/DocumentManager/NodeManager.php
public function has($identifier)
    {
        $this->normalizeToPath($identifier);

        try {
            $this->find($identifier);

            return true;
        } catch (DocumentNotFoundException $e) {
            return false;
        }
    }
public function has($identifier)
    {
        $this->normalizeToPath($identifier);

        try {
            $this->find($identifier);

            return true;
        } catch (DocumentNotFoundException $e) {
            return false;
        }
    }
public function has ( $ identifier ) { $ this -> normalizeToPath ( $ identifier ) ; try { $ this -> find ( $ identifier ) ; return true ; } catch ( DocumentNotFoundException $ e ) { return false ; } }
Determine if a node exists at the specified path or if a UUID is given,
then if a node with the UUID exists.

@param string $identifier

@return bool
Determine if a node exists at the specified path or if a UUID is given then if a node with the UUID exists .