def bool_setter(value: bool):
    """Generic setter for bool objects

        Args:
            value: The value to be validated.

        Raises:
            TypeError: If the value is not bool
    """
    if isinstance(value, bool) or value is None:
        return value
    if value == "false":
        return False
    if value == "true":
        return True

    raise ValueError("Type should be bool")