Use has_key? to find out if key is present or not