check for console.log function