Would it be better to use `_.isObject` here like it is done [here](https://github.com/cbmi/cilantro/pull/374/files#diff-f544bd4e826023fec2a4fee0ec1cd3feR87).