add break to isValidResponse