Fixed typo in isDirty example

It should be a get call instead of a set call