RingBuffer: check if buffer is empty