Whether an offset exists.

/**
 * Whether an offset exists.
 *
 * @param mixed $offset An offset to check for.
 */
public function offsetExists($offset): bool

Examples

$arrays = Arrays::create(['items' => ['foo' => 'Foo', 'bar' => 'Bar']]);

if ($arrays->offsetExists('items.foo')) {
    // do something...
}

if (isset($arrays['items.bar'])) {
    // do something...
}

Getting Started

Methods