Only print to console.log if console.log exists