add isReadonly method for fields