protected function findRoute(int $method, string $uri)
    {
        $route = null;
        // if URI is empty and a default route is set, use it instead
        if ($uri !== ""
            || ($route = $this->routes->defaultRoute()) === null
        ) {
            return $this->checkContainer($method, $uri);
        }
        return $route;
    }