src/Router/Routes/Glob.php
public function hasRoute(ServerRequestInterface $request, $withMethod = true)
    {
        $route = $this->findRoute($request->getUri(), $withMethod ? $request->getMethod() : null);
        return isset($route);
    }
public function hasRoute(ServerRequestInterface $request, $withMethod = true)
    {
        $route = $this->findRoute($request->getUri(), $withMethod ? $request->getMethod() : null);
        return isset($route);
    }
public function hasRoute ( ServerRequestInterface $ request , $ withMethod = true ) { $ route = $ this -> findRoute ( $ request -> getUri ( ) , $ withMethod ? $ request -> getMethod ( ) : null ) ; return isset ( $ route ) ; }
Check if a route for the URL exists

@param ServerRequestInterface $request
@return boolean
Check if a route for the URL exists