Check if buffer is empty _before_ rebuilding it