Can you please move this line into the if condition so it is close to its usage? We don't need it outside of it. Probably we could even completely get rid of it.