remove brackets and use `||` instead of `or`
Example:
```ruby
node_progress = node['progress'] || saved_progress
```
Also if you protect from nil value, just use `to_i`
```ruby
saved_status = STATES[saved_node['status']].to_i
```
It will work, because `nil.to_i` return 0.