def string_to_bool(value):
    """
    Convert string to bool

    :param value: string or bool
    :type value: str or bool
    :return: bool
    """
    if isinstance(value, bool):
        return value
    return value.lower() in ['true', '1', 't', 'y', 'yes']
