You don't need to use `if` here.  The point of using the block format is that the block is not executed if the level isn't active.