Remove this check and just `return` out of the loop.