Checking that the photos are not null.