This will throw a ReferenceError. Use `typeof console != 'undefined'`