Change array_merge to array_merge_deep for merging in default values for endpoint settings.