Added isEmpty() method on JSONObject and JSONArray classes