       zone = ""
       @apiKey = ""
 
+    @secured = @apiKey != '' and @version != 4
     @url ?= zone + "-search.doofinder.com"
 
   ###

    @version ?= 5
    @params = {}
    @filters = {}
    @url ?= address
    # API Key can be two ways:
    # zone-APIKey

      params.query = cleaned
      headers = {}
      if _this.apiKey
        if _this.version == 4
          authHeaderName = 'api token'
        else
          authHeaderName = 'authorization'
        headers[authHeaderName] = _this.apiKey

      _this.params = {}
      _this.filters = {}
      _this.sort = []
