public function isSignedUp($user) { if (!$user) { return false; } return $this->registrations()->where('user_id', '=', $user->user_id)->exists(); }