Removed usage of has_key

It's deprecated