Move this outside of the if, and you can use it in both halfs of the if.