def _validate_list(_object: Any, var_name: str) -> None:
    if not isinstance(_object, list):
        raise ValueError(f"{var_name} must be a list")
    else:
        for x in _object:
            if not isinstance(x, str):
                raise ValueError(f"{var_name} must be a list of strings")