Fix if condition

Hi,

I think this if is broken.  Now it will short circuit the if when subtypes array is empty or null.

@scoen can you please check this?  Jon and I were a little surprised by this and may have missed something obvious.

Huw.