make iterator callbacks return an integer (boolean) value which allow breaking the iteration