Change array_merge to array_replace in order to permit numeric keys