don't save file if no items and delete it if it exists with no items