Made photo to be nil but if present then check for url validness