check for arrays being passed