I would move this above and outside of the if condition.