// Exist checks whether `val` exists in `s`.
778796
func (s Int64Set) Exist(val int64) bool {
	_, ok := s[val]
	return ok
}
1270336
func (self *Model) Exists(id interface{}) bool {
	return self.db.Exists(self.collection.Name, id)
}
1074545
func (g *Container) Exists(hierarchy ...string) bool {
	return g.Search(hierarchy...) != nil
}
1044020
func (cd *Codec) Exists(key string) bool {
	return cd.Get(key, nil) == nil
}
1243153
func (r RedisPipeline) Exists(key string) *redis.BoolCmd {
	return r.pipeline.Exists(key)
}
258984
func (s *Set) Exists(v string) bool {
	pos := sort.SearchStrings(s.items, v)
	return pos < len(s.items) && s.items[pos] == v
}
760411
func (form Form) Exists(name string) bool {
	_, exists := form[name]
	return exists
}
303108
func (s *Store) Exists(ctx context.Context, name string) bool {
	return s.storage.Exists(ctx, s.passfile(name))
}
719108
func (v *TreeVertex) Exists(id string) bool {
	return v.Find(id) != nil
}
337826
func (c *ZkConn) Exists(ctx context.Context, path string) (exists bool, stat *zk.Stat, err error) {
	err = c.withRetry(ctx, func(conn *zk.Conn) error {
		exists, stat, err = conn.Exists(path)
		return err
	})
	return
}
288794
func (provider *Provider) Exists(ledgerID string) (bool, error) {
	return provider.idStore.ledgerIDExists(ledgerID)
}
1249994
func (r *RequestContext) Exists(key string) bool {
	r.mutex.RLock()
	_, exists := r.store[key]
	r.mutex.RUnlock()
	return exists
}
794282
func Exists(set []string, find string) bool {
	for _, s := range set {
		if s == find {
			return true
		}
	}
	return false
}
443115
func (m *InMem) Exists(ctx context.Context, name string) bool {
	m.Lock()
	defer m.Unlock()

	_, found := m.data[name]
	return found
}
400173
func (self *Commands) Exists(value interface{}) error {
	if typeutil.V(value).String() != `` {
		return nil
	} else {
		return fmt.Errorf("Expected non-empty value")
	}
}
1282624
func (env *Env) Exists(key string) bool {
	_, exists := env.Map()[key]
	return exists
}
587415
func (s *Key) Exists() bool {
	_, err := os.Stat(s.Path())
	if os.IsNotExist(err) {
		return false
	}

	return true
}