This could also be written

```ruby
def non_empty_squares
  squares.reject(&:zero?)
end
```