Autodetect config by objects in array.