[refactored] value of photo will be checked if can be transformed into

an URL