guard against null / emptiness in JSON object