Use isExhausted in place of canConsume.