Given an array with only odd counts:

```
[1,nil,nil]
[1,nil,Module,nil,2]
[1,Class.new,nil]

```

I would like to determine if there are nils or more non-nils. The approach I used was to make everything either true or false first. And then to determine if there are more true or false values:

```
[ 1,nil,nil,nil,2,3].collect {|val| !!!val }.max
#=> ArgumentError: comparison of TrueClass with false failed

```

The max method does not want to play nice with booleans. How can I accomplish this?

Now this might not be the best approach to determine whether there are more nils or non-nils, but this is the approach that I used.