public function loadProjectAccessByEmail(Project $project, $email) { foreach ($project->getUsers() as $user) { $account = $this->getAccount($user); if ($account['email'] === $email) { return $user; } } return false; }