I think that user_avatar
in the above array only holds a value if the users upload on, but I’m not sure. I don’t have a lot of experience with this type of field. Usually when I want to display a user avatar I use this WP function https://codex.wordpress.org/Function_Reference/get_avatar and let WP do all the work.