related tags if logic for "all"