isObjectId added for Mongoose/MongoDB

isObjectId added if you are using Mongoose with MongoDB