I think the comparison is to something like this
try:
user = getUser()
profile = getProfile(user)
pic = getProfilePicture(profile)
thumb = getThumbnail(pic)
return thumb
except Missing:
return None