Report question

Question: How determine if the popup page is open or not?