protected function isSchemeRequired(RouteContract $route): bool
    {
        $requiredSchemes = false;
        $requestScheme   = $this->request->getUri()->getScheme();

        if ($route->isHttpOnly()) {
            $requiredSchemes = $requestScheme !== 'http';
        } elseif ($route->isHttpsOnly()) {
            $requiredSchemes = $requestScheme !== 'https';
        }

        return $requiredSchemes;
    }