check if block already exists before trying to flush it