Maybe adding some function (`$var.is_undef()`) to Close<> and Ref<> would be better ... I'll look into it ..