Add guard clause for iterating
Merge pull request #47 from yous/patch-next

Add guard clause for iterating