```ruby
def get_nodes_to_report(nodes)
  nodes.compact.inject([]) { |result, node| result << node if node_validate(node); result }
end
```
Use with changes above