Check for console before printing