def execute_callback(name, *args)
      return unless respond_to?(name)

      unless arity_cache.key?(name)
        arity_cache[name] = method(name).arity
      end

      if arity_cache[name] == 0
        send(name)
      else
        send(name, *args)
      end
    end
def execute_callback(name, *args)
      return unless respond_to?(name)

      unless arity_cache.key?(name)
        arity_cache[name] = method(name).arity
      end

      if arity_cache[name] == 0
        send(name)
      else
        send(name, *args)
      end
    end
Executes the specified callback method if it exists.

 @param [String|Symbol] name The name of the callback method to execute.
 @param [Array] args Arguments to pass to the callback method.