Fix bad logic for checking photos