Since enum checking is now implemented in assert_parameter, there is no need for a custom function