// Returns whether the setting identified by this key
// exists in this settings object
168824
func (s *Settings) Has(name string) bool {
	s.lock.Lock()
	defer s.lock.Unlock()
	_, ok := s.data[name]
	return ok
}
15090
func (m Map) Exists(name string) bool {
	_, exists := m[name]
	return exists
}
934060
func (a *AutoTriggerCheck) GetSetting() bool {
	if a == nil || a.Setting == nil {
		return false
	}
	return *a.Setting
}
1359609
func (set *Set) Exists(item interface{}) bool {
	set.lock.RLock()

	_, ok := set.items[item]

	set.lock.RUnlock()

	return ok
}
903570
func (user *User) SaveSetting(key string, value interface{}) error {

	if user.ID == 0 {
		return errors.New("SaveSetting: user is empty")
	}

	key = strings.ToLower(key)
	serviceID := user.ctx.getServiceID()

	var ud userData
	_, err := user.ctx.db.C("users").FindId(user.ID).Select(bson.M{"settings." + serviceID: 1}).
		Apply(
		mgo.Change{
			Update: bson.M{
				"$set":         bson.M{"settings." + serviceID + "." + key: value},
				"$setOnInsert": bson.M{"createdat": time.Now()},
			},
			Upsert:    true,
			ReturnNew: true,
		},
		&ud)

	if err == nil && user.data != nil && user.data.Settings != nil && ud.Settings != nil && ud.Settings[serviceID] != nil {
		user.data.Settings[serviceID] = ud.Settings[serviceID]
	}

	return err
}
719108
func (v *TreeVertex) Exists(id string) bool {
	return v.Find(id) != nil
}
416914
func (sm StringMap) HasKey(key string) bool {
	_, found := sm[key]
	return found
}
1196248
func (s Store) Exists(key string) bool {
	_, err := s.Get(key)
	if err != nil {
		return false
	}
	return true
}
531296
func (c *Config) HasKey(key string) bool {
	_, ok := (*c)[key]
	return ok
}
362199
func (z *zookeeperKV) exists(key string) (bool, error) {
	key = z.domain + normalize(key)
	exists, _, err := z.client.Exists(key)
	if err != nil {
		return false, err
	}
	return exists, nil
}
589378
func (smap *syncedMap) Has(key interface{}) bool {
	_, ok := smap.Get(key)
	return ok
}
484015
func (mgr *SettingsManager) GetSettings() (*ArgoCDSettings, error) {
	err := mgr.ensureSynced(false)
	if err != nil {
		return nil, err
	}
	argoCDCM, err := mgr.configmaps.ConfigMaps(mgr.namespace).Get(common.ArgoCDConfigMapName)
	if err != nil {
		return nil, err
	}
	argoCDSecret, err := mgr.secrets.Secrets(mgr.namespace).Get(common.ArgoCDSecretName)
	if err != nil {
		return nil, err
	}
	var settings ArgoCDSettings
	var errs []error
	if err := updateSettingsFromConfigMap(&settings, argoCDCM); err != nil {
		errs = append(errs, err)
	}
	if err := updateSettingsFromSecret(&settings, argoCDSecret); err != nil {
		errs = append(errs, err)
	}
	if len(errs) > 0 {
		return &settings, errs[0]
	}
	return &settings, nil
}
804388
func (pk PrimaryKeyArray) Contains(key string) bool {
	for _, name := range pk {
		if name == key {
			return true
		}
	}
	return false
}
1257983
func (c *Ctx) Get(key interface{}) (value interface{}, exists bool) {
	value = c.netContext.Value(key)
	exists = value != nil
	return
}
996085
func (c *MemoryStore) Exists(key string) (bool, error) {
	if _, exists := c.cache.Get(key); exists {
		return true, nil
	}
	return false, nil
}
157746
func (c KbfsClient) GetKBFSTeamSettings(ctx context.Context, __arg GetKBFSTeamSettingsArg) (res KBFSTeamSettings, err error) {
	err = c.Cli.Call(ctx, "keybase.1.kbfs.getKBFSTeamSettings", []interface{}{__arg}, &res)
	return
}
1339116
func (m *PHashMap) ContainsKey(key interface{}) bool {
	if key == nil {
		return m.hasNil
	}

	if m.root == nil {
		return false
	}

	return m.root.findD(0, Hash(key), key, phmNotFoundValue) != phmNotFoundValue
}