Turns out that is_defined? for a hash key would return a string/true in any circumstance, thus making any links_by_click stop at the first link (since an empty string would be converted to a link_limit of 0).