feat(utils): check object is a non-empty primitive type