Certain principles hold for the use of iterators: In general, you should be able to have multiple traversals in progress at the same time; that is, an iterator should allow for the concept of nested ...
It's not terribly clean, but you could use indexOf() and check if it returns -1. Better than breaking out a loop.