change $defined for Moo 1.4