using form->set_data($data) will take care of all of the conditionals in this form. If there's a value set in the $data object in a field that corresponds with the form field name, it will bind the data to the form...