I'm still not convinced that this is necessary. The config object is an empty object by default, and will be filled up straight away by the init file of the module. If that doesn't happen, the config wouldn't really be valid anyway. On my initial read of this code, this looked to me like something else was going on that I was missing