public boolean isEmpty() {
        return fifoQueue.isEmpty() && headRecord == null;
    }
Tests if the queue is empty

@return true if the queue is empty, otherwise false
streams/src/main/java/org/apache/kafka/streams/processor/internals/RecordQueue.java