Returns a boolean indicating whether an offset exists for the current `Collection`.

@param  string $offset String or integer indicating the offset or index of an entity in the set.
@return boolean        Result.
170522
public function offsetExists($offset)
    {
        $keys = is_array($offset) ? $offset : explode('.', $offset);
        if (!$keys) {
            return false;
        }

        $name = array_shift($keys);

        if ($keys) {
            if (!array_key_exists($name, $this->_data)) {
                return false;
            }
            $value = $this->_data[$name];
            if ($value instanceof ArrayAccess) {
                return $value->offsetExists($keys);
            }
            return false;
        }
        return array_key_exists($name, $this->_data);
    }
820430
public function offsetExists($offset)
    {
        switch ($offset) {
            case 'position': return isset($this->position);
            break;
            case 'subSpecs': return (0 < count($this->subSpecs)) ? true : false;
            break;
            default: return false;
        }
    }
1021742
public function offsetGet ($offset)
    {
        return isset($this->datumData[$offset]) ? $this->datumData[$offset] : false;
    }
1072389
public function has($offset = null)
    {
        if ($offset === null) {
            return $this->count() > 0;
        }

        $arr = &$this->getArrayByReference($offset);

        return is_array($arr) ? array_key_exists($offset, $arr) : false;
    }
501055
public function offsetGet($offset)
    {
        if (isset($this->rows[ $offset ])) {
            return $this->rows[ $offset ];
        }

        return false;
    }
1365774
public function offsetExists($offset)
    {
        if (gettype($offset) !== 'string' && empty($offset) === false) {
            $msg = "The requested offset must be a string.";
            throw new OutOfRangeException($msg);
        }

        $data = &$this->getDataPlaceHolder();

        return isset($data[$offset]);
    }
303417
public function offsetGet($offset)
    {
        $method = 'get'.static::formatOffset($offset);

        return $this->offsetExists($offset) ? $this->{$method}() : null;
    }
386497
public function offsetGet($offset) : ?Collection {
        return $this->has($offset) ? $this->collection($offset) : null;
    }
1013450
protected function offsetIsAllowed($offset)
    {
        return (is_null($offset) || (((string)(int)$offset) == $offset) || is_int($offset));
    }
735659
public function offsetExists($offset): bool
    {
        MDataType::mustBe(array(MDataType::INT));

        return (array_key_exists($offset, $this->list) === true);
    }
525595
public function offsetExists($offset) {
    if (is_string($offset)) {
      return $this->get($offset) ? true : false;
    }
    return parent::offsetExists($offset);
  }
415018
public function offsetExists($offset)
    {
        if (false === $result = parent::offsetExists($offset)) {
            if ($this->_cache) {
                $result = apcu_exists($this->_cache_prefix.'-'.$offset);
            }
        }

        return $result;
    }
1292127
public function offsetGet($offset)
    {
        if (!parent::offsetExists($offset)) {
            if ($this->_cache) {
                $result = apcu_fetch($this->_cache_prefix.'-'.$offset);
            } else {
                $result = false;
            }
        } else {
            $result = parent::offsetGet($offset);
        }

        return $result;
    }
980929
public function exists($offset): bool
    {
        $offsets = is_array($offset) ? $offset : func_get_args();

        foreach ($offsets as $key) {

            if (! $this->offsetExists($key)) {
                return false;
            }
        }

        return true;
    }
284790
public function offsetExists($offset): bool
    {
        if (is_null($this->data)) {
            return false;
        }

        return $this->data($offset, '--$--') !== '--$--';
    }
1294599
public function offsetExists($offset)
    {
        foreach ($this->observer as $observer) {
            if (strtolower($observer->getName()) === strtolower($offset)) {
                return true;
            }
        }

        return false;
    }
1002635
public function offsetExists($offset): bool
    {
        $offset = $this->sanitizeOffset($offset);

        return array_key_exists($offset, $this->data);
    }