Checks if a given value is present in a collection