public function has($name, $notNull = true)
    {
        $value = NestedArrayUtil::getNestedArrayValue(self::$config, explode('.', $name), $exists);

        return $exists && (!$notNull || $value !== null);
    }
public function has($name, $notNull = true)
    {
        $value = NestedArrayUtil::getNestedArrayValue(self::$config, explode('.', $name), $exists);

        return $exists && (!$notNull || $value !== null);
    }
public function has ( $ name , $ notNull = true ) { $ value = NestedArrayUtil :: getNestedArrayValue ( self :: $ config , explode ( '.' , $ name ) , $ exists ) ; return $ exists && ( ! $ notNull || $ value !== null ) ; }
Check if a configuration value is defined.

@param string $name    The configuration name (e.g. 'application.name').
@param bool   $notNull Set false to treat null configuration values as
defined.

@return bool
Check if a configuration value is defined .