Added a foreach loop to default snippets