nspl\ds\Collection::offsetExists PHP Метод

offsetExists() публичный Метод

(PHP 5 >= 5.0.0)
Whether a offset exists
public offsetExists ( mixed $index ) : boolean
$index mixed

An offset to check for.

Результат boolean true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.

    public function offsetExists($index)
    {
        return isset($this->array[$index]);
    }