Small fix for checking console existence.