private function canAdd(\App\User $user, $request) { if (\App\Subscription::isSubscribed($user)) { return true; } else { $deck = \App\Deck::find($request->id); if ($deck->users->count() >= DeckAddUser::USER_LIMIT) { return false; } else { return true; } } }