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

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