check if var is an array