This can be condensed to just `if (config.out && config.out  === 'stdout')`