only add ui-has-child-title when there really is a title

`.toggleClass()` explicitly requires a `false` (not falsy) 2nd argument