code: public static boolean isArray(Type type) {
          return (type instanceof GenericArrayType) || (type instanceof Class<?> && ((Class<?>) type).isArray());
      }
docs: Determines whether the given type is an array type.
  
  @param type the given type
  @return true if the given type is a subclass of java.lang.Class or implements GenericArrayType