make sure value is an array