I think this should skip the empty array then push, instead just set the value to the array with the data in it since that's the only place it gets used.