Hi @Anonymous
You could achieve this by writing an expression:

Expression used in compose 3 action:
contains(outputs('Compose_2'),outputs('Compose'))
the above expression will return a Boolean value.
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Thanks