I know this is mostly a cut + paste of the old code, but this could be inverted and use `continue`.