if ($request->session()->exists('users')) //To determine if an item is present in the session, even if its value is null, you may use the exists method