Check when messageBox pop up.

Nechaj tento riadok po starom, nech riesime aj prazdne ops.