importCottonValuesimportFoundationextensionRecordValue {/// Nothing written: null, an empty list, or text that is only whitespace.staticfunc isBlank(_ value: RecordValue) -> Bool {switch value {case .null: returntruecase .text(let s): return s.trimmingCharacters(in: .whitespacesAndNewlines).isEmptycase .list(let l): return l.isEmptydefault: returnfalse } }/// Written and not a no: a value that is not blank and not `false`.staticfunc isSet(_ value: RecordValue) -> Bool { value != .bool(false) && !isBlank(value) }}