Core/Config/Config.php
public function exists($storage_name, $key = null)
    {
        // No app found = false
        if (!isset($this->storage[$storage_name])) {
            return false;
        }

        // app found and no key requested? true
        if (!isset($key)) {
            return true;
        }

        // key requested and found? true
        return isset($this->storage[$storage_name]->{$key}) && !empty($this->storage[$storage_name]->{$key});
    }
public function exists($storage_name, $key = null)
    {
        // No app found = false
        if (!isset($this->storage[$storage_name])) {
            return false;
        }

        // app found and no key requested? true
        if (!isset($key)) {
            return true;
        }

        // key requested and found? true
        return isset($this->storage[$storage_name]->{$key}) && !empty($this->storage[$storage_name]->{$key});
    }
public function exists ( $ storage_name , $ key = null ) { // No app found = false if ( ! isset ( $ this -> storage [ $ storage_name ] ) ) { return false ; } // app found and no key requested? true if ( ! isset ( $ key ) ) { return true ; } // key requested and found? true return isset ( $ this -> storage [ $ storage_name ] -> { $ key } ) && ! empty ( $ this -> storage [ $ storage_name ] -> { $ key } ) ; }
Checks the state of a cfg setting

Returns true for set and false for not set.

@param string $storage_name
@param string $key

@return boolean
Checks the state of a cfg setting