you can use `break` instead of `return`.

or not use `groupFound`, as this is redundant.
(but I prefer to use `groupFound`, I really dislike these return in a middle of a function)