Add a guard when we want to delete the block while iterating