original_string: private function hasRoute($routePattern, $routeName)
      {
          if (!$routeName) {
              throw new RoutingRuntimeException('Route name is empty!');
          }
  
          $route = $this->routeManager->findByRoutePattern($routePattern);
  
          return ((null !== $route) && ($routeName !== $route->getName()));
      }
code: private function hasRoute($routePattern, $routeName)
      {
          if (!$routeName) {
              throw new RoutingRuntimeException('Route name is empty!');
          }
  
          $route = $this->routeManager->findByRoutePattern($routePattern);
  
          return ((null !== $route) && ($routeName !== $route->getName()));
      }
code_tokens: private function hasRoute ( $ routePattern , $ routeName ) { if ( ! $ routeName ) { throw new RoutingRuntimeException ( 'Route name is empty!' ) ; } $ route = $ this -> routeManager -> findByRoutePattern ( $ routePattern ) ; return ( ( null !== $ route ) && ( $ routeName !== $ route -> getName ( ) ) ) ; }
docstring: Has route.
  
  @param string $routePattern
  @param string $routeName
  
  @return bool
  
  @throws RoutingRuntimeException
docstring_tokens: Has route .