since this isn't doing anything if `key` doesn't exist, I'd rather this just be an if statement:

```
if (key) {
    keys = key.split('.');
}