add some checking for weird intermittent issue of getting array for some form values