note: don't merge nil keys