<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _have_conf(self, magic_hash=None):
 """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 """

        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