Use maybe to implement optionalAttrRaw