ni:

`if (photoContents && photo.meta && photo.meta.encoding === 'base64') {`