console.log only if console object is availavble and has a 'log' method