public function setting($key = false, $value = false) { parent::setting($key, $value); $file = $this->path . $this->name . '.db'; $this->path = ($this->path != ':memory:' and file_exists($file)) ? $file : ':memory:'; }