public function hasScope(string $name, Member $member): bool
    {
        return $member->Groups()->filter([
            'Scopes.Name' => $name
        ])->count() > 0;
    }
public function hasScope(string $name, Member $member): bool
    {
        return $member->Groups()->filter([
            'Scopes.Name' => $name
        ])->count() > 0;
    }
public function hasScope ( string $ name , Member $ member ) : bool { return $ member -> Groups ( ) -> filter ( [ 'Scopes.Name' => $ name ] ) -> count ( ) > 0 ; }
Checks whether the member has the specified scope.

@param string $name
@param Member $member

@return bool
Checks whether the member has the specified scope .