Safari said the bug by debugger

ReferenceError: Can't find variable: AN

Code:

if (typeof(AN) === undefined) {
   AN = {}; 
}