diff --git a/lib/dynamic-cache.js b/lib/dynamic-cache.js
index <HASH>..<HASH> 100644
--- a/lib/dynamic-cache.js
+++ b/lib/dynamic-cache.js
@@ -3,6 +3,10 @@
 var fs = require('fs');
 
 function objectValues(obj) {
+	if (typeof obj !== 'object') {
+		return [];
+	}
+
   return Object.keys(obj).map(function (key) {
     return obj[key];
   });
implementing fix from #<I>