I think you could move this line out of the if block.