Check response before checking response.result