Ensure there is an element to iterate over.