renamed isSet to isWrite
adjusted to new structure