Fixes #70

Adds an empty check around the foreach() that is causing the warning...