Scala's Option and Haskell's Maybe implemented in PHP