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