public function hasMemberInvitationOnTeam($teamId)
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $memberInvitationsOnTeam = $this->memberInvitations->filter(function ($memberInvitation) use ($teamId) {
            return ($memberInvitation->member->team_id === $teamId) && ($memberInvitation->member->status === "Invited");
        });
        /** @noinspection PhpUndefinedMethodInspection */
        return $memberInvitationsOnTeam->count() > 0;
    }