fixed check on var name to obj from object
Looks good, thanks @Daveloper87 😄
Revert .empty assertion change from PR #499
The change introduced in #499 breaks compatibility with Array-like
objects (e.g. mongoose arrays).
It should be applied in the next major version.