def boolean(value):
    """Make a boolean value from a string"""
    value = value.lower()
    if value in {'on', 'true'}:
        return True
    if value in {'off', 'false'}:
        return False
    return bool(int(value))