diff --git a/lib/Model-rest.js b/lib/Model-rest.js
index <HASH>..<HASH> 100644
--- a/lib/Model-rest.js
+++ b/lib/Model-rest.js
@@ -20,7 +20,7 @@ module.exports = function(Model,options){
   }
 
   var isEmpty = function(obj){
-    return !Object.keys(obj).length;
+    return !obj || !Object.keys(obj).length;
   };
 
   var handleResponse = function(err,res,callback,type){
fix exception when trying to check an empty object