public static boolean instanceOfCollection(final Object o) {
        return o instanceof Collection || valueInstanceOfCollection(o);
    }
Returns {@code true} if the object is a collection or a {@link GValue} that contains a {@link Collection}.
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/GValue.java