{{- $input := . -}}
{{- $notExpired := where $input "Params.expirydate" "eq" nil -}}
{{- $notUnlisted := where $input "Params.unlisted" "eq" nil -}}
{{- $filteredPages := $notExpired | intersect $notUnlisted -}}
{{- $output := $filteredPages -}}
{{- return $output -}}