Yes, it's optional. The enter method's msg dictionary defaults to an empty dictionary:
func enter(msg := {}) -> void: