Add 'dialog' check for its existence.