public boolean isEmpty() {
        return stream.size() == 0;
    }
judge stream is empty.

@return true: stream is empty
shenyu-plugin/shenyu-plugin-logging/shenyu-plugin-logging-common/src/main/java/org/apache/shenyu/plugin/logging/common/body/BodyWriter.java