Here, values are lists not ndarrays, so in fact if should be something like `if any([v == 0 for v in values]):` instead. Or `numpy.any(numpy.array(values) == 0)`.