if this.messages contains only removable messages, couldn't you iterate over this.messages instead of calling getRemovableMsg() ?