check if values is an array