Actually the code style seems to favor hoisting vars out (it was a phase :P). So that would make it:

```js
var propKey, moduleConfig;
if(typeof module.config == "function"){
  moduleConfig = module.config();
}
for(propKey in moduleConfig){
```