Just use `if encoder.decode and and data[encoder.as]?`