public bool HasValue(string name) { if (this.values.ContainsKey(name)) return true; if (this.parent != null) return this.parent.HasValue(name); return false; }