Check if a currency with a specific code exists
static bool hasCode(String code) { return fromCode(code) != null; }