Check if dialog is opened.

Tu [PEP8 odporuca](http://legacy.python.org/dev/peps/pep-0008/#programming-recommendations) `if not ops:`. Prazdne sekvencie (list, tuple, string) su `false`.