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;
    }
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;
    }
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 ; }
Check for existing MemberInvitation on Team with UUID

@param [type] $teamId UUID of Team to check for User Member
@return boolean
Check for existing MemberInvitation on Team with UUID