How can I check with if , if the second tab has opened?

how can I check with if , if the second tab has opened?

I think you can check it with if statusok, when fails the tab is not open