# Placeholder user image if field empty

**URL:** <https://forum.wixstudio.com/t/placeholder-user-image-if-field-empty/8927>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [December 6, 2022, 5:10pm UTC](https://forum.wixstudio.com/t/placeholder-user-image-if-field-empty/8927 "2022-12-06T17:10:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kristinateslanews](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/kristinateslanews/32/8767_2.png) [@kristinateslanews](https://forum.wixstudio.com/u/kristinateslanews)\
**Post date:** [December 6, 2022, 5:10pm UTC](https://forum.wixstudio.com/t/placeholder-user-image-if-field-empty/8927/1 "2022-12-06T17:10:43Z")

</div>

Hello, in a repeater I have user reviews. In the collection “Reviews” I have a reference field “member” to the PublicData of the users. The profile picture has the ID “profilePhoto”. I now want to check in the repeater if a user doesn’t have a profile picture yet and then display a placeholder picture “URL”.  
According to my understanding, it should go via " itemData . member . profilePhoto === **undefined"** But it does not work. What am I doing wrong?

My code:

$w ( “#reviewsRepeater” ). onItemReady (( $item , itemData , index ) =\> {  
**if** ( itemData . member . profilePhoto === **undefined** ) {  
$item ( “#imageMember” ). src = “URL” ;  
}  
})
