Is this condition required? Can you not just enter the `synchronized` block irrespective of whether something was done this time?