force the config to be an array if empty

...or we get a bunch of "invalid argument" to the foreach statement.
Merge pull request #22 from mmn/master

force the config to be an array if empty