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

#5749