Changed environment config from array_merge() to array_replace_recursive()
Refactoring a little code.