This if block can all be moved to the template. See [this](https://github.com/cbmi/varify/blob/279478179116cab5ab27aaaf73d6d037b8150ded/varify/static/templates/variant/effect-item.html#L7-L9) as an example of only showing links when an attribute exists.