title: return nil vs return false in Ruby
body: <p>So, I have this code from a colleague with lots of <code>return false</code> and <code>return true</code>.</p>
  
  <p>For example this method:</p>
  
  <pre><code>def has_only_one_uploaded_image?
    return false if images.size &gt; 1
    method_here
  end
  </code></pre>
  
  <p>If I remove the <code>false</code> as the return value, will it still work if I use it from other conditions?</p>
  
  <p>like in this method...</p>
  
  <pre><code>def commission_plan_product_available?
    (has_only_one_uploaded_image? ||
      (has_many_images? &amp;&amp; images_are_saved?))
  end
  </code></pre>
  
  <p>I'm confused as to when to use the proper <code>boolean</code> return and when I should not.</p>
  
  <p>I'm new to Ruby (not sure if <code>nil</code> can be also <code>false</code> in conditionals, please bear with me. Thank you.</p>
  
  <p>Can someone shed some light please?</p>