I just wrote the following javascript (jQeury loaded):var valid, ui;try {    $.each(this._cache, function() {        $.each(this, function() {            $.each(this, function() {                if (this.label.toLowerCase() === valueLowerCase) {                    valid = true;                    ui = {item: $.extend({}, this) };                    throw 'Control flow throw, please rethrow if accidently caught';                }            });        });    });} catch(e) {}My coworker suggested I rewrite this as follows:var valid, ui;$.each(this._cache, function() {    $.each(this, function() {        $.each(this, function() {            if (this.label.toLowerCase() === valueLowerCase) {                valid = true;                ui = {item: $.extend({}, this) };            }            return !valid;        });        return !valid;    });    return !valid;});I think this is a valid case of using exceptions as control flow. Which way is the correct way to do this?
Exceptions for control flow
javascript;jquery;exception handling;jquery ui