use the OR operator here instead of inline IF: locale === (currLocal || "")