def node_has_a_filter(node, filter_func_name):
    """ returns True if the node has the given filter_func_name
        , e.g. 'safe',  otherwise returns False.
    """
    if not hasattr(node, 'filter_expression'):
        return False
    for _filter in node.filter_expression.filters:
        if _filter and _filter[0].__name__ == filter_func_name:
            return True
    return False
