title: How to workaround the `false.blank?` gotcha in ruby on rails?
body: <p>I need to check on a Boolean variable whether its value has been set or not, I would know that by checking if it contains an empty string <code>&quot;&quot;</code> or <code>nil</code> indicates the value has not been set and another value as <code>true</code> or <code>false</code> indicates the value has been set.</p>
  <p>I tried using <code>blank?</code> but Rails has this gotcha on the <code>blank?</code> method that when called on <code>false</code> will actually return <code>true</code></p>
  <p><code>false.blank? # Returns true</code></p>
  <p>So, when the value of the variable had been set to false, it would give me false negatives for the value as if the variable wouldn't have been set.</p>
  <p>How to check that a variable is not set(<code>&quot;&quot;</code>, <code>nil</code>) or it is set(<code>true</code>,<code>false</code>, <code>0</code>, <code>1</code>) in Ruby on Rails?</p>