if ($request->session()->has('users'))
//The has method returns true if the item is present and is not null:
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
if ($request->session()->missing('users'))