checkImg(user) { if (!user) return; ... var src = user && user.profileImageURL; ... return( ...) }
https://habrahabr.ru/post/350110/