Improved the Block.if() method to support break and return;