* fix(handlers): return error when updating json cred w/ empty obj * chore(handlers): split cond stmt & refactor func name