make sure responseData is there before we try to parse it