if (typeof window.console != 'undefined') {
if (typeof window.console.log === 'function' && _isFunction(window.console.log.apply)) {
because this does not throw an error in IE
Regards,
Monique