It could be moved inside the getAll callback and serve the same purpose. That would be a better place for it. Thanks for pointing it out.