table('user')->where('user_id', $value)->first(); if( !$user ){ $fail("The user ID {$value} does not exist."); } } }