Fix response_is_valid() method