def _parse_boolean(value):
    """
    Returns a boolean value corresponding to the given value.

    :param value: Any value
    :return: Its boolean value
    """
    if not value:
        return False
    try:
        value = value.lower()
        return value not in ('none', '0', 'false', 'no')
    except AttributeError:
        return True
