Use JSONObject `opt*()` methods instead of `has()`