Document/Subscriber/RoutableSubscriber.php
private function nodeExists(SessionInterface $session, $uuid)
    {
        try {
            $session->getNodeByIdentifier($uuid);

            return true;
        } catch (ItemNotFoundException $exception) {
            return false;
        }
    }
private function nodeExists(SessionInterface $session, $uuid)
    {
        try {
            $session->getNodeByIdentifier($uuid);

            return true;
        } catch (ItemNotFoundException $exception) {
            return false;
        }
    }
private function nodeExists ( SessionInterface $ session , $ uuid ) { try { $ session -> getNodeByIdentifier ( $ uuid ) ; return true ; } catch ( ItemNotFoundException $ exception ) { return false ; } }
Returns true if given uuid exists.

@param SessionInterface $session
@param string $uuid

@return bool
Returns true if given uuid exists .