isValid

Check if the CTE string word belongs to K string enum

template isValid (
K
string word
) if (
is(K == enum)
) {
enum code;
enum isValid;
}