Check if dialog is opened.