Should really be: if (lang.exists("WUGetBugReportInfoResponse", response))  Based on the content of the IF.