As the param seems to be optional, I find [optBoolean(String key, boolean defaultValue)](http://www.json.org/javadoc/org/json/JSONObject.html#optBoolean%28java.lang.String%29) even more concise.