check the person has offices before trying to loop over them