[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