Have you tried an Element exists activity, to see if the element appears? The selector can aim at the Web page. Limit the time it looks for it (maybe not the full 30 seconds default)
The output is a Boolean for true or false, so your following IF statement can just use that bool_variable as the condition, and have it act accordingly.