public Optional<Node> get(int index) {
        return elements.size() > index && index > -1
                ? Optional.of(elements.get(index))
                : Optional.empty();
    }
Gets a node from the given index.

@param index Index of the value to get.
@return Returns an optional node at the given index.
smithy-model/src/main/java/software/amazon/smithy/model/node/ArrayNode.java