dont overwrite file if empty