mongoose reponse object.hasownproperty code example Example: mongodb hasOwnProperty returns false if ( !(User.local && User.local.password) ) {...}