'Existence-checking version of _get_setting.'

def _has_setting(self, setting_name):

    try:
        self._get_setting(setting_name)
    except (KeyError, AttributeError):
        return False
    else:
        return True
