You could use `missing(it_code)`. And then maybe move the test a little earlier and make it an early return? e.g.

```r
if (missing(it_code)) return()
```