+1 just do assert(!empty) and do the decoding.