Better handling of non-existence of json data