Can you move this out of the "if" clause?