/** * Get the current value of an index * * @param string $key * @return array */ protected function getJsonValue($key) { if ($this->io_driver->exists($key)) { return json_decode($this->io_driver->read($key), true); } else { return []; } }