public ObjectNode getBooleanMember(String key, Consumer<Boolean> consumer) {
        getBooleanMember(key).map(BooleanNode::getValue).ifPresent(consumer);
        return this;
    }
The same as {@link #expectBooleanMember(String, Consumer)} but the member is optional.

@param key Key to retrieve.
@param consumer Consumer that accepts the boolean value.
@return Returns the node.
smithy-model/src/main/java/software/amazon/smithy/model/node/ObjectNode.java