Use EmptyIterator instead an empty ArrayIterator (thanks @stof)