default Optional<JsonArray> asJsonArrayOptional() {
        if (this instanceof JsonArray) {
            return Optional.of((JsonArray) this);
        } else if (node() instanceof ArrayNode) {
            return Optional.of(new JsonArray((ArrayNode) node()));
        } else {
            return Optional.empty();
        }
    }
If this is a JSON array, return a JsonArray wrapped by an `Optional`. Otherwise, return Empty.
server-common/src/main/java/org/apache/kafka/server/util/json/JsonValue.java