public boolean isEmpty() {
        return numRecords() == 0;
    }
@return {@code true} if and only if this fetch did not return any non-control records
clients/src/main/java/org/apache/kafka/clients/consumer/internals/ShareFetch.java