Here I would do 
jed = jed || this._locales[id][configuration.defaultLanguage];
iif(!this._msgIdExists(jed, msgId, count)) { 
...
}
This way you would not call msgIdExists twice.

Correct me if I'm wrong.