Only flush data if, well, there's data to flush