public static boolean isIterable(Object maybeIterable) {
        return maybeIterable instanceof Iterator<?>
            || maybeIterable instanceof Iterable<?>
            || (maybeIterable != null && maybeIterable.getClass().isArray());
    }
Returns true if the given object is iterable.

@param maybeIterable the object that might be iterable.
@return whether {@code IterableLike} can iterate over the given object.
core/src/main/java/org/jdbi/v3/core/internal/IterableLike.java