Fix removed depracated has_key? syntax