Check for System/console before using it