fix wrong if expression in link_tag

hi,
the expression is the opposite of what it should do