fix foreach php warning (fixes #11)
Merge pull request #12 from Kunstmaan/fix_php_warning

fix foreach php warning (fixes #11)