Checks to see if the character index exists.

Implements part of the ArrayAccess interface. Offsets may be
negative to count from the last character in the string.

@param  int     $index The integer of the index to check.

@return boolean
347664
public function offsetExists($index)
    {
        $index = (int)$index;

        if ($index >= 0) return ($this->getLength() > $index);

        return ($this->getLength() >= abs($index));
    }
1079425
public function indexAt($index)
    {
        return ($index >= 0 && $index <= $this->count() - 1) ? $this->blockManagers[$index] : null;
    }
441174
public static function validIndex( $index, $value )
    {
        if ( is_array( $value ) )
        {
            return ( count( $value ) > $index && $index >= 0 );
        }
        elseif ( is_string( $value ) )
        {
            return ( strlen( $value ) > $index && $index >= 0 );
        }

        return FALSE;
    }
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);
    }
316144
public function indexOf($string, $offset = 0)
	{
		ArgumentValidator::validateScalar($string);
		ArgumentValidator::validateEmpty($string);
		ArgumentValidator::validateUnsignedInteger($offset);
		$index = mb_strpos($this->string, (string)$string, $offset);
		return $index === false ? null : $index;
	}
253171
protected function readTranslation($index)
    {
        $msgStr = $this->readStringFromTable($index, $this->msgStrTable);
        if (false === $msgStr) {
            $msgStr = array();
        }

        return $msgStr;
    }
1006742
public function has($index)
    {
        $index = (string) $index;

        return $this->get($index, null) !== null;
    }
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;
        }
    }
847000
public function hasItem($index)
    {
        if (is_string($index) and in_array($index, $this->childNodesEntities)) {
            if (false !== ($key = array_search($index, $this->childNodesEntities))) {
                if ($this->childNodes->offsetExists($key)) {
                    return true;
                }
            }
        }

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

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

        return false;
    }
1284500
public function isFile($index)
	{
		if (isset($this->_list[$index])) {
			return ($this->_list[$index]->Type == self::OLE_PPS_TYPE_FILE);
		}
		return false;
	}
886282
public function getCharAt(int $index): string
    {
        if (!isset($this->charsSet[$index])) {
            throw DictionaryException::indexOutOfBounds();
        }

        return $this->charsSet[$index];
    }
938902
public function offsetExists($index)
    {
        if (!parent::offsetExists($index) || parent::offsetGet($index) === null) {
            if (isset($this->links[$index]['url']) || $index === '$links') {
                return true;
            }
            return false;
        }
        return true;
    }
531641
public function column($index = 0)
    {
        $stmt = $this->execute();

        if ($stmt) {
            return $stmt->fetchAll(PDO::FETCH_COLUMN, $index);
        } else {
            return false;
        }
    }
1250533
public function hasNode($index)
    {
        if (is_string($index) and in_array($index, $this->nodesEntities)) {
            if (false !== ($key = array_search($index, $this->nodesEntities))) {
                if ($this->offsetExists($key)) {
                    return true;
                }
            }
        }

        return false;
    }