fixing undefined var $res by accessing Configurator settings + array key checks