JIRA ID[MB-18]
Creation of a new function "is_valid_flavor" to check if the flavor
valid or not