Checking, has collection ID
@see  \Lovata\Toolbox\Tests\Unit\CollectionTest::testHasMethod()
@link https://github.com/lovata/oc-toolbox-plugin/wiki/ElementCollection#hasielementid
@param int $iElementID
@return bool
354083
public function has($iElementID)
    {
        if (empty($iElementID) || $this->isEmpty()) {
            return false;
        }

        return in_array($iElementID, (array) $this->arElementIDList);
    }
947199
public function has($id) {
		foreach($this->values as $container) {
			if($container->has($id)) {
				return true;
			}
		}
		return false;
	}
1269367
public static function isIdField($fieldId)
    {
        //====================================================================//
        // Safety Check
        if (empty($fieldId)) {
            return false;
        }
        //====================================================================//
        // Detects ObjectId
        $list = explode(IDSPLIT, $fieldId);
        if (is_array($list) && (2 == count($list))) {
            //====================================================================//
            // If List Detected, Prepare Field List Information Array
            $result['ObjectId'] = $list[0];
            $result['ObjectType'] = $list[1];

            return $result;
        }

        return false;
    }
323425
public function has($id) {
		try {
			$result = $this->getBackend()->exists($this->prepareId($id));
		}
		catch (PhalconCacheException $exception) {
			if ($this->operationsExceptions) {
				throw new OperationFailed('Checking of the data exiting in the cache failed due to the backend exception occurred: "' . $exception->getMessage() . '"', 0, $exception);
			} else {
				return false;
			}
		}
		
		return $result;
	}
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;
		}
	}
511451
public static function get($sClassName, $iElementID)
    {
        $sKey = self::getKey($sClassName, $iElementID);
        if (isset(self::$arItemStore[$sKey]) && self::$arItemStore[$sKey] instanceof ElementItem) {
            return clone self::$arItemStore[$sKey];
        }

        return null;
    }
974208
public function isOnline($uid)
    {
        if (empty($uid)) return false;
        foreach ($this->map as $node_name => $set) {
            if ($set->contains($uid)) {
                return true;
            }
            return false;
        }
    }
889162
public function hasCollection($collection)
    {
        if (empty($this->queriesResultCache[ 'collectionNames' ])) {
            $this->getCollections();
        }

        return (bool)in_array($collection, $this->queriesResultCache[ 'collectionNames' ]);
    }
362198
public function unshift($iElementID)
    {
        if (empty($iElementID)) {
            return $this->returnThis();
        }

        if ($this->isEmpty()) {
            $this->arElementIDList = [$iElementID];

            return $this->returnThis();
        }

        array_unshift($this->arElementIDList, $iElementID);

        return $this->returnThis();
    }
557961
public function hasItem(string $cacheId, bool $withVersion = true) : bool
    {
        if ($withVersion) {
            $cacheId .= '.' . $this->getVersion();
        }

        return $this->cache->has($cacheId);
    }
379849
public function has($id)
    {
        if (isset($this->aliases[$id])) {
            $id = $this->aliases[$id];
        }
        if (isset($this->services[$id])) {
            return true;
        }
        if ('service_container' === $id) {
            return true;
        }

        return isset($this->fileMap[$id]) || isset($this->methodMap[$id]);
    }
482736
protected function makeItem($iElementID, $obElement = null)
    {
        $sItemClass = static::ITEM_CLASS;

        return $sItemClass::make($iElementID, $obElement);
    }
75913
public function hasItem($cacheId)
    {
        $cacheId = $this->normalizeKey($cacheId);

        return $this->cache->has($cacheId);
    }
1069668
public function has($id)
    {
        if (isset($this->resolved[$id])) {
            return true;
        }

        if (isset($this->definitions[$id])) {
            return true;
        }

        // How can this be moved to the ReflectionResolver?
        if (class_exists($id)) {
            return true;
        }

        return false;
    }
865398
public function has($id) {
		$event  = $this->getProfiler()->startRead('Has: ' . $id);
		$result = $this->getBackend()->has($id);
		
		if ($result === false) {
			$event->stopNotice();
		} else {
			$event->stopSuccess();
		}
		
		return $result;
	}
565939
public function hasItem($cacheId)
    {
        $cacheId = $this->normalizeKey($cacheId);

        return isset($this->map[$cacheId]);
    }
62287
public function has($key)
    {
        $result = $this->get($key);

        //an empty EntityCollection means no related entities
        if ($result instanceof EntityCollection && count($result) === 0) {
            return false;
        }

        return $result ? true : false;
    }