if condition for response.body