Could we reformat this as:
```js
if (_isFunction(key)) key = key();
```
Just a small style thing but this is more inline with the rest of the project.