```$urlAlias->languageCodes``` contains unique list of languages, so if one is matched there is no point in checking the others.