hasPhotos filter fix