public boolean hasObjectField(String name) {
        return expectObjectValue().containsKey(name);
    }
Expects the value to be an object and checks if it contains
a field by name.

@param name Field to get from the expected object.
@return Returns true if the object contains the given key.
smithy-jmespath/src/main/java/software/amazon/smithy/jmespath/ast/LiteralExpression.java