Add 'is defined' extension method for enumeration values