[CB-7131] Check for profile photo existance

This tries to solve the bug checking for the existance of the picture before adding to the photo array
this is probably under indented (2 space instead of 4 space)