code: def _have_conf(self, magic_hash=None):
          
          self.app.have_conf = getattr(self.app, 'cur_conf', None) not in [None, {}]
          if magic_hash is not None:
              # Beware, we got an str in entry, not an int
              magic_hash = int(magic_hash)
              # I've got a conf and a good one
              return self.app.have_conf and self.app.cur_conf.magic_hash == magic_hash
  
          return self.app.have_conf
docs: Get the daemon current configuration state
  
          If the daemon has received a configuration from its arbiter, this will
          return True
  
          If a `magic_hash` is provided it is compared with the one included in the
          daemon configuration and this function returns True only if they match!
  
          :return: boolean indicating if the daemon has a configuration
          :rtype: bool