title: How do I check if there's a nil set or not in an array?
body: <p>If I set some <code>nil</code> values to an array, I don't seem to be able to check for them. I have tried <code>any?</code> and <code>empty?</code>. </p>
  
  <pre><code>array = [nil, nil, nil]
  #=&gt; [nil, nil, nil]
  
  array[1].any?
  #=&gt; "NoMethodError: undefined method `any?' for nil:NilClass"
  </code></pre>