To escape the JSHint warning, you can add `/* globals console: true */`, since you are sniffing it properly in the conditional