More usual way
```ruby
if node['status']
  err << "Status provided #{node['status']} is not supported" unless STATES[node['status']]
else
  err << "progress value provided, but no status" if node['progress']
end
```