I did that at first, but that requires iterating through the full sequence, where best case this could result in only checking the first character. So opted for this instead.