Yes, but the return will exit the entire method, not just the loop. So if there is a method `foo(bar, baz)`, and `bar` is used outside of a condition, `baz` will never be checked.

Replacing `return result` with `next` will probably do what you want.