The condition ``!this.isIndexValid(value)`` is sufficient here.