Replace 'x instanceof Array' due to problems with iframes.