Ensure for-each can accept empty list
Added haddock