I rgink so, but I don't know how
Take element exists activity for 'check existing word' and output will be a boolean value... then take a flow decision and pass the output.. for 'true' branch connect the node two logic and for 'false' just put a log message with some message like 'end'... repeat similar logic to node 2..