Can this whole line be simplified to:

```ruby
Array(node['rsyslog']['server_ip'])
```

That will ensure it's an array (even if it's already an array)