Implements isDirty in Model