add is_array check

Warning: Invalid argument supplied for foreach() in addons/mform/lib/classes/class.get_mform_array.php on line 354