Test for arrays on dashboard before foreach loops