check()) { return new Response('', 302, ['Location' => '/login']); } return $next($params); } }