Put `join` after `if ... else ...` because both branches use the same join.