duplicate check for `this.dates.length`