Check if running in console