Will throw an error when  $steps['xml_form_builder_metadata_step'] isn't present since we can't get an index of NULL.

if (isset($association['dsid']) && $association['dsid'] == 'MODS') {

Should fix it.