You could do something like
{{ $do := false }}
{{ $destination := .Destination }}
{{ $dofollow := .Page.Params.dofollow }}
{{ range $dofollow }}{{ if (in ($destination) .) }}{{ $do = true }}{{ end }}{{ end }}
{{ if (or (in (.Destination) "mydomain.com") $do ) }}
...