Added hasPhotos filter functionality