Replace comment and if clause with a method, e.g. `if (this._shouldUpdateParams(dateTime)` (you can think of a better name, this one isn't right).