private boolean showDialogIsEmpty() { if (heap.isEmpty()) { Dialog.showInformation("Chyba", "Binární halda je prázdná."); return true; } return false; }