Simplify array match type check