{{ $taxonomies := slice "administrators" "authors" "researchers" "teachers" }} {{ $has := .Params.has }} {{ $is_taxonomy_present := false }} {{- range $taxonomies -}} {{- if index $has . -}} {{ $is_taxonomy_present = true }} {{ end }} {{ end }} {{ if $is_taxonomy_present }}