[#653] Code cleanup based on code review

* The JSON.isNull() also checks the non-existence of a key