I tried to add the code to wp-content/plugins/theme-my-login-custom.php and it didn’t work.
@bcworkz,
I want to check if an object property name exists because I need to transform array entries into new object entries. So I check if it already exists by name.