// Determine if this object or one of its prototypes has a property. internal virtual bool HasProperty(String name) { if (HasOwnProperty(name)) { return(true); } else if (parent != null) { return(parent.HasProperty(name)); } else { return(false); } }