probably better if(!Array.isArray(vcardObj.photo))