diff --git a/lib/collection/url.js b/lib/collection/url.js
index <HASH>..<HASH> 100644
--- a/lib/collection/url.js
+++ b/lib/collection/url.js
@@ -167,7 +167,7 @@ _.extend(Url.prototype, /** @lends Url.prototype */ {
             rawUrl = rawUrl + this.getPath();
         }
 
-        if (this.query.count()) {
+        if (this.query && _.isFunction(this.query.count) && this.query.count()) {
             rawUrl = rawUrl + '?' + this.getQueryString();
         }
ensure that we do not throw on url stringification