Rename getDirty to isDirty.