Check for array type before foreach()
Check for array type before foreach()

Reminded-by: Ryan Wagoner/Seth Mos

brunostein/pfsense,pfsense/pfsense,BlackstarGroup/pfsense,phil-davis/pfsense,dennypage/pfsense,ch1c4um/pfsense,dennypage/pfsense,phil-davis/pfsense,jxmx/pfsense,ch1c4um/pfsense,dennypage/pfsense,brunostein/pfsense,ch1c4um/pfsense,NewEraCracker/pfsense,NOYB/pfsense,ptorsten/pfsense,BlackstarGroup/pfsense,jxmx/pfsense,ptorsten/pfsense,dennypage/pfsense,BlackstarGroup/pfsense,NOYB/pfsense,jxmx/pfsense,BlackstarGroup/pfsense,NewEraCracker/pfsense,pfsense/pfsense,NOYB/pfsense,ch1c4um/pfsense,pfsense/pfsense,NewEraCracker/pfsense,ptorsten/pfsense,pfsense/pfsense,NewEraCracker/pfsense,phil-davis/pfsense,phil-davis/pfsense,brunostein/pfsense