lets extract it as `lang/isPlainObject` this will be useful in other places.