Only save when there is something to save.