src/Sulu/Bundle/RouteBundle/Manager/RouteManager.php
private function isUnique(RouteInterface $route)
    {
        $persistedRoute = $this->routeRepository->findByPath($route->getPath(), $route->getLocale());

        return !$persistedRoute;
    }
private function isUnique(RouteInterface $route)
    {
        $persistedRoute = $this->routeRepository->findByPath($route->getPath(), $route->getLocale());

        return !$persistedRoute;
    }
private function isUnique ( RouteInterface $ route ) { $ persistedRoute = $ this -> routeRepository -> findByPath ( $ route -> getPath ( ) , $ route -> getLocale ( ) ) ; return ! $ persistedRoute ; }
Returns true if route is unique.

@param RouteInterface $route

@return bool
Returns true if route is unique .