public bool EmitIsSetProperties(string shapeName, string propertyName) { var data = _documentRoot[EmitIsSetPropertiesKey]; if (data == null) return false; var shape = data[shapeName] as JsonData; if (shape == null || !shape.IsArray) return false; foreach (var name in shape) { if (string.Equals(name.ToString(), propertyName)) return true; } return false; }