Can you put the `sparse_output ` condition first?