Updated merge config array method