Fix Undefined variable: response_array