use `$.isArray` to determine if the range is an array