Test for json_last_error, not messy is_array