modified how conditional statements work when the data value is an array

#5749