const totalCount = (a ? a.length : 0) + (b ? b.length : 0);