Dicer: reverse logic for 'end' detection