Why not
```scala
paramOptionalString(param).map {
  case tValue if Seq("1", "true", "t").contains(tValue) => true
  case fValue if Seq("0", "false", "f").contains(fValue) => false
  case _ => throw new InvalidParameter("throwing exception because side-effects are our friends")
}
```