Oh, but what if one of the enum values is 'undefined'. Bleah