Fix critical issue

Type check `data.reset` as it was picking up `collection.reset` as a truthy when passing in a collection since collection have a `reset` method