Call `markModified()` in the model setter and add the `isModified()` method