code: public static boolean isArray(Type t)
    {
      if(t instanceof Class<?>) {
        return ((Class<?>)t).isArray();
      }
      if(t instanceof GenericArrayType) {
        return true;
      }
      return false;
    }
docs: Test if type is array. If type is a class return {@link Class#isArray()} predicate value; otherwise test if type is
  {@link GenericArrayType}.
  
  @param t type to test.
  @return true if type is array.