diff --git a/lib/cloudsearch.js b/lib/cloudsearch.js
index <HASH>..<HASH> 100644
--- a/lib/cloudsearch.js
+++ b/lib/cloudsearch.js
@@ -26,6 +26,11 @@ var cloudsearch = function() {
       }
 
       var domains = data.Body.DescribeDomainsResponse.DescribeDomainsResult.DomainStatusList.member;
+      if (!domains) {
+        domains = [];
+      } else if (!(domains instanceof Array)) {
+        domains = [domains];
+      }
       res.locals.domains = domains;
       next();
     });
Fix for 0 or 1 domain in gcs