Add LinkTarget::hasFragment() helper function