quick implementation of Option's ala-Scala