public static bool HasKey(string key) { if (ResourceResolver == null) { return(false); } return(ResourceResolver.TryGetResourceValue(key) != null); }