public function match($url, $redirect404 = true)
    {
        $routeFound = null;

        foreach ($this->routes as $route) {
            if (!$route->verify($url)) {
                continue;
            }

            $routeFound = $route;
            break;
        }

        if (!($routeFound instanceof RouteInterface) && $redirect404 === true) {
            $routeFound = $this->get('error404');
        }

        return $routeFound;
    }