title: How do I know if a generator is empty from the start?
body: <p>Is there a simple way of testing if the generator has no items, like <code>peek</code>, <code>hasNext</code>, <code>isEmpty</code>, something along those lines?</p>