Swap the arguments to array_merge or add a comment why user should not be able to overwrite the key size.