Update GeneratorCommand.php

Adds a check to prevent a foreach on an empty list of methods, which raises an Exception and stops generating the IDE Helper file.
Merge pull request #7 from syphernl/patch-1

Check if array of methods is not empty