def validate_bool(flag):
    """Check if bool."""
    if not isinstance(flag, bool):
        raise TypeError(
            "Flag: Expected boolean. " "Got instead type {}".format(type(flag))
        )
    return None