Check first if the response body is defined