@classmethod
def category_valid(cls, category):
    """Return true if category is valid."""
    if cls.CATEGORIES is not None:
        if str(category) in cls.CATEGORIES:
            return True
        return False
    return True
