bool hasTyped<T>(String name) { final val = get(name, checked: false); return val != null && val is T; }