function offsetGet($index)
    {
        if (isset($this->{$index})) {
            return $this->{$index};
        } else {
            $records = $this->records();
            if ($index === "results") {
                return $records;
            }
            if ($record =& $records[$index]) {
                return $record;
            }
            foreach ((array)$records as $key => $record) {
                if ($record['id'] === $index) {
                    $record =& $records[$key];
                    return $record;
                }
            }
        }

        return null;
    }