If you don't really need the temp var here, you can just move this into the "if"