I always like to write this sort of thing like:

```ruby
next unless Array(resource.data.locales).include?(lang.to_s)
```