public function getKey($val = null, $var = null, $section = false)
    {
        if (!empty($val)) {
            if (!empty($var)) {
                foreach ($this->registry as $_sct=>$_data) {
                    if ($ok=array_search($val, $_data) && $ok==$var) {
                        return $_sct;
                    }
                }
            } elseif (!empty($section) && isset($this->registry[$section])) {
                return array_search($val, $this->registry[$section]);
            } else {
                return array_search($val, $this->registry);
            }
        }
    }