You can pull down the `val`declaration into the `if` block.