public static bool HasNonEmptyCustomAttribute(this SvgElement element, string name) { return element.CustomAttributes.ContainsKey(name) && !string.IsNullOrEmpty(element.CustomAttributes[name]); }