Check the value returned by getIterator()
Prevent having both is_iterator and is_iterable