including if statement to exclude photos with no actual photo