/** * Check if a setting exists by the key. * * @param string $key * * @return bool */ public function has($key) { $this->checkLoaded(); $domain = $this->grabDomain($key); if (!$this->data->has($domain)) { return false; } return Arr::has($this->data->get($domain), $key); }
/** * Check if the entry is saved. * * @param string $domain * @param string $key * * @return bool */ private function isSaved($domain, $key) { return Arr::has($this->saved->get($domain, []), $key); }