What does the last line of this code do?

It checks if user contains the key "address" and stores the result in has_addressIt checks if user contains the key "address", without storing the resultIt creates a new key "address"

It checks if user contains the key "address" and stores the result in has_address.