new method for prevent `console` errors in browsers that lack a console.