module T::Props::Utils

def self.need_nil_write_check?(prop_rules)

The prop_rules indicate whether we should check for writing a nil value for the prop/field.
def self.need_nil_write_check?(prop_rules)
  need_nil_read_check?(prop_rules) || T::Props::Utils.required_prop?(prop_rules)
end