fix PHP Warning:  Invalid argument supplied for foreach() in /inc/edit-form.php on line 30