Validates if a value is an array.