This should just use `if()`, `ifelse()` is for vectors.