public boolean nonEmpty() {
        return !isEmpty();
    }
Return true if the segments are non-empty, false otherwise.

This method is thread-safe.
storage/src/main/java/org/apache/kafka/storage/internals/log/LogSegments.java