For criticalValue is an array, we may use `(criticalValue.length)`. But if you change that object from array to object, I don't think we need to add event listener here. We may add event listener when user creates this object.