Fixed containsProductTypes function.