removed redundant check for photos