def IsCoverPhotoSet(self):
    if self.cover_photo is not None:
      assert len(self.cover_photo) > 0, self
      return True
    return False
The cover photo is consider set if it is a non empty dict.
dataset/ETHPy150Open viewfinderco/viewfinder/backend/db/viewpoint.py/Viewpoint.IsCoverPhotoSet