fix has_key?
Merge pull request #108 from jlambert121/issue_102_take2

if udp handler socket defined -> to_i