Checks if filter exists in groupID.
filter
groupID
bool contains(FilterGroupID groupID, Filter filter);