Replace for/else syntax. Trying to be clever, end up feeling dumb