can we move this into an `else` of the `if` below? would be more readable to me.