def prepare
      options[:category] = options[:value] if options[:value] && !options[:category]
      fail "No categorizer set up for category tracker #{inspect}" unless options[:category]

      @categorizer = create_lambda(options[:category]) unless options[:multiple]

      # Initialize the categories. Use the list of category names to
      @categories = {}
      options[:all_categories].each { |cat| @categories[cat] = 0 } if options[:all_categories].is_a?(Enumerable)
    end
def prepare
      options[:category] = options[:value] if options[:value] && !options[:category]
      fail "No categorizer set up for category tracker #{inspect}" unless options[:category]

      @categorizer = create_lambda(options[:category]) unless options[:multiple]

      # Initialize the categories. Use the list of category names to
      @categories = {}
      options[:all_categories].each { |cat| @categories[cat] = 0 } if options[:all_categories].is_a?(Enumerable)
    end
Check if categories are set up