@polesye Yes, I think it's better. Just change the checks to
```
if (_.isNull(o) || _.isUndefined(o)) {
...
}

if (!_.isObject(0)) {
…
}
```
In another PR, we should put that function in a file accessible throughout the code, will be extremely useful.