public function get($key) { return isset($this->preferences[$key]) ? $this->preferences[$key] : null; }