Bad idea, AndrewHunter. If the test fails in the j loop, that is, the loop completes, then the check outside will have j exceed array bounds.
I'd say this is a perfect example of where a goto is...