Added INSTANCEOF so we only check things that have a dirty property.