Put isEnd value directly into conditional.