protected function checkCache($name)
    {
        if (!isset($this->cache[$name])) {
            try {
                $config = $this->db
                    ->from($this->table)
                    ->where($this->columns['name'])->eq($name)
                    ->select()
                    ->fetchAssoc()
                    ->first();
                if (!$config) {
                    return false;
                }

                $this->cache[$name] = new ArrayHelper(unserialize($config[$this->columns['data']]));
            } catch (PDOException $e) {
                return false;
            }
        }

        return true;
    }