Javascript Empty Array Element Restructuring Costs