If I don’t include it, and .Type is not available, hugo stops evaluating this partial without any error, and the “…” from the end is missing (in my case, all the html was broken). In other languages one can compare null or undefined with a string without breaking the program, so I wonder what goes on in this case.
Would it be possible to display some debugging information when this happens?
A second question is, is there a shorter way of writing the “double if” construction?