Added isValid to check is passed value is valid in enum constants set