Scala like functions for Haxe Option