If photo url is empty, make nil