Avoid allocating an iterator when the list is empty.
Merge pull request #115 from square/jw/avoid-iterator

Avoid allocating an iterator when the list is empty.