public boolean isTruthy() {
        switch (getType()) {
            case ANY: // just assume it's true.
            case NUMBER: // number is always true
            case EXPRESSION: // references are always true
                return true;
            case STRING:
                return !expectStringValue().isEmpty();
            case ARRAY:
                return !expectArrayValue().isEmpty();
            case OBJECT:
                return !expectObjectValue().isEmpty();
            case BOOLEAN:
                return expectBooleanValue();
            default:
                return false;
        }
    }
Returns true if the value is truthy according to JMESPath.

@return Returns true or false if truthy.
smithy-jmespath/src/main/java/software/amazon/smithy/jmespath/ast/LiteralExpression.java