title: How do I check if a variable is defined in rails?
body: <pre><code>&lt;% if dashboard_pane_counter.remainder(3) == 0 %&gt;
    do something
  &lt;% end&gt;
  </code></pre>
  
  <p>If dasboard_pane_counter wasn't defined, how can I get this to evaluate to false rather than throw an exception?</p>