Null safety implementation for Haxe