public function isOwner($userId, $projectId) { return count(Project::where(['id' => $projectId, 'owner_id' => $userId])) > 0; }