Do you need to check for nil here? Default behaviour would be to set text to empty if nil. Although maybe you have default values you don't want erased?