Again, if `console` is undefined, this code will fail. If you want to check for the existence of a global variable, you need to do `if (window.console)`, not `if (console)`.

The other thing is that we should assume that `console` *is* defined for this test, since the tests are going to be run in a controlled environment. So I think this `if` test should be removed entirely.