A more idiomatic approach here would be to just do `for { }` and `return` instead of use a boolean.