just realized this throws away the result of `is_valid`. would it be more realistic to use `is_valid` in an `if`?