src/Collection.php
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;
    }
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;
    }
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 ; }
Check that an offset, or series of offsets exists

@param mixed $offset - the offset(s) to check
@return bool
Check that an offset or series of offsets exists