classes/collection/ElementCollection.php
public function has($iElementID)
    {
        if (empty($iElementID) || $this->isEmpty()) {
            return false;
        }

        return in_array($iElementID, (array) $this->arElementIDList);
    }
public function has($iElementID)
    {
        if (empty($iElementID) || $this->isEmpty()) {
            return false;
        }

        return in_array($iElementID, (array) $this->arElementIDList);
    }
public function has ( $ iElementID ) { if ( empty ( $ iElementID ) || $ this -> isEmpty ( ) ) { return false ; } return in_array ( $ iElementID , ( array ) $ this -> arElementIDList ) ; }
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
Checking has collection ID