Mongoose migrate

May we use `NOOT.isFunction()` here ?