Fallback action for custom action

how to write a fallback custom action for another custom action

i done something like this

if some condition: statement;

elif True: dispatcher.utter_template(“utter_default”, tracker, silent_fail=True)

        return [UserUtteranceReverted()]

is this method is correct