Added a new function to determine if the value is an accepted categorical value or not

BMS-199

Reviewer: Mae Turiana