you could make this more clever by having `add_to_href` raise an exception and wrapping the `linkify` call in a `try`/`except` block that catches it; this would have the advantage of stopping on the first link found. I agree that invoking `linkify` is the best way to do this, no need to have duplicate link-detecting code.