I don't think you meant to move this inside the `if`?