title: Idiomatic way of treating Option[Boolean]
body: <p>In my Scala program, I am receiving some JSON.</p>
  
  <p>One of the fields is an optional Boolean. If the field is missing, or if its value is false, I would like to return <code>None</code>. If its value is true, I would like to return <code>Some(true)</code>.</p>
  
  <p>SInce this is equivalent to converting <code>Some(false)</code> into <code>None</code>, I have defined the following function:</p>
  
  <p><code>def boolmap(ob: Option[Boolean]) = if(ob == Some(false)) None else ob</code></p>
  
  <p>It works, but it doesn't seem to be very idiomatic. Is there anything more elegant?</p>