Do a check to ensure $attributes_field is an array before passing to element_children() and attmepting to attach non-existant attribute options, for issue #6