Checks whether at least one state checker with id $id exists.

@param int $id Watch descriptor

@return bool
542576
public function has($id)
    {
        return isset($this->watched[$id]) && 0 !== $this->watched[$id]->count();
    }
431734
public function hasGroupId(int $id) : bool
    {
        $usergroups = $this->usergroups;

        foreach ($usergroups as $index => $usergroup) {
            if ($usergroup->group_id === $id) {
                return true;
            }
        }

        return false;
    }
396759
public function isCached($id) {
        if ($id != null) {
            $id = $this->getIDfromOjb($id);
        }

        if ($id == null)
            return false;

        $cachefile = $this->getConfig('cacheDir') . '/' . utf8_decode($id);
        $cachetime = $this->getConfig('cacheTime');

        if (file_exists($cachefile) && time() - $cachetime < fileatime($cachefile)) {
            return true;
        }

        return false;
    }
1368620
protected function exists(int $id = 0): bool
    {
        return (bool)@shmop_open($id ? $id : $this->id, 'a', 0, 0);
    }
721532
public function has($id)
    {
        $id = strtolower($id);

        return isset($this->definitions[$id]) || isset($this->aliasDefinitions[$id]) || parent::has($id);
    }
4780
public function has($id)
    {
        if (array_key_exists($id, $this->entries)) {
            return true;
        }
        if (array_key_exists($id, $this->factories)) {
            return true;
        }
        return false;
    }
735218
public function has($id)
    {
        if ($this->isSilverStripeServiceRequest($id)) {
            return (bool) $this->getSilverStripeService($id);
        } else {
            return parent::has($id);
        }
    }
947199
public function has($id) {
		foreach($this->values as $container) {
			if($container->has($id)) {
				return true;
			}
		}
		return false;
	}
654312
public function has($id)
    {
        return isset($this->definitions[$id]) || isset($this->services[$id]);
    }
706838
public static function find_by_id($id)
	{
		$row = self::oneOrNew($id);

		if (!$row->get('id'))
		{
			return false;
		}

		return $row;
	}
321872
public function has($id)
    {
        try {
            $existing = $this->get($id);
        } catch (\OutOfBoundsException $e) {
            return false;
        }
        return Util::typeOf($existing);
    }
929266
public function persistedDataExists($id)
    {
        if (!$this->id) {
            $this->handler->open($this->savePath, $this->name);
        }
        $ret = (bool)$this->handler->read($id);
        if (!$this->id) {
            $this->handler->close();
        }
        return $ret;
    }
301705
protected function checkFileUploadWithSessionGuard($id)
    {
        $guard = $this->getFileUploadSesssionGuard();

        return ! $guard->enabled() || $guard->check($id);
    }
606923
public function offsetExists($id)
    {
        if (isset($this->delegates[$id])) {
            return true;
        }
        // @codingStandardsIgnoreStart
        @trigger_error(
            'isset service: The pimple based DIC is deprecated, use the symfony DIC in new projects.',
            E_USER_DEPRECATED
        );
        // @codingStandardsIgnoreEnd

        return parent::offsetExists($id);
    }
1356521
public function __isset($id) {
		if ($this->has($id)) {
			return true;
		}
		
		if ($this->hasLocator()) {
			$locator = $this->getLocator();
			
			if ($locator->has($id)) {
				return true;
			}
		}
		
		return false;
	}
995782
public function isDeleted($id)
    {
        if ($this->_deleted === null) {
            return false;
        }

        if (extension_loaded('bitset')) {
            return bitset_in($this->_deleted, $id);
        } else {
            return isset($this->_deleted[$id]);
        }
    }
1342768
public function has($id) {
		$source = $id;
		while (is_string($source) && isset($this->getter[$source])) {
			$source = $this->getter[$source];
		}
		if (!is_string($source)) {
			return $source instanceof \Closure;
		} else {
			if (isset($this->instance[$source]) || class_exists($source)) {
				return true;
			}
			return false;
		}
	}