Removed unnecessary if.

Foreach will do nothing on an empty array, so no additional if required.
Merge pull request #2 from staabm/patch-1

Removed unnecessary if.