do not write to file if config is empty