Small refactor

Reduced an if/else to a single if statement. If $(this) has no id
attribute or if it has an id attribute that doesn't match a set of
.sub.child elements, nothing happens which is what I'm going for.