Can we move emptySlice and emptyObject to vars in the pkg and not this func so we only create and use one instance of them?