Typecasted null variable as array for foreach loop

PHP (not sure starting which version) would give the following error:

A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: loopee/pi.loopee.php

Line Number: 219
Merge pull request #2 from notacouch/master

Typecasted null variable as array for foreach loop