code: private static boolean isArrayLike(Object object)
    {
      return object != null && (object.getClass().isArray() || object instanceof Collection);
    }
docs: An object is array like if is an actual array or a collection.
  
  @param object object to test if array like.
  @return true if <code>object</code> argument is array like.