rename #_has_user_agent to #has_user_agent