public function hasMemberOnTeam($teamId)
    {
        /** @noinspection PhpUndefinedMethodInspection */
        $membersOnTeam = $this->members->filter(function ($member) use ($teamId) {
            return ($member->team_id === $teamId) && ($member->status !== "Invited");
        });
        /** @noinspection PhpUndefinedMethodInspection */
        return $membersOnTeam->count() > 0;
    }