Function in_array in Hugo

Help to make a configuration file correctly.

There is a parameter

[[params.haberdashery]]
  name = "Y.MATT"
  alt_name = "y_matt"
  logo = "y_matt/y_matt_15_thumb.jpg"
  url = "/catalog/haberdashery/y_matt/"
  max = 22
  no_in_short = [2, 6, 20, 21, 22]
  weight = 6

There is a cycle

{{ $alt := .alt_name }}
{{ $brand_url := .url }}					
{{ range $i, $v :=  (seq .max) }}
                            <div class="col-md-1 col-sm-2 col-xs-3">
                                <div class="single-video-area mb-30">
                                    <div class="video-img">
                                        <div class="game">
												<a href="{{ $brand_url }}"><img src="/images/catalog/{{ $alt }}/{{ $alt }}_{{ $v }}_thumb.jpg" alt=""></a>
                                        </div> 										
                                    </div>								
                                </div>       
                            </div>
{{ end }}

I want to put a check inside the loop and exclude the appearance of data according to the parameter

no_in_short

I need something like this

{{ $alt := .alt_name }}
{{ $brand_url := .url }}					
{{ range $i, $v :=  (seq .max) }}
{{ if ne in_arrray($v, .no_in_short) }}
                            <div class="col-md-1 col-sm-2 col-xs-3">
                                <div class="single-video-area mb-30">
                                    <div class="video-img">
                                        <div class="game">
												<a href="{{ $brand_url }}"><img src="/images/catalog/{{ $alt }}/{{ $alt }}_{{ $v }}_thumb.jpg" alt=""></a>
                                        </div> 										
                                    </div>								
                                </div>       
                            </div>
{{ end }}
{{ end }}

{{ if ne in_arrray($v, .no_in_short) }} - how to write correctly?