check for existence before running file operations