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);
    }
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);
    }
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 ) ; }
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.
Returns a boolean indicating whether an offset exists for the current Collection .