public function get($key, $defaultVal = null) { $val = $this->underlyingGet($key, $defaultVal); if ($this->isEncrypted($key, $val)) { $val = $this->decrypt($val); } $val = Utils::correctType($val); return $val; }