if (isset($value["DEPTH_LEVEL"])) {
if (count($value['UF_CROPED']) > 0) {
$arFile = CFile::GetFileArray($value['UF_CROPED'][0]);
} else {
$arNoPhoto[$key] = $value;
}
} else {
if (!empty($value["DETAIL_PICTURE"])) {
$arFile = CFile::GetFileArray($value["DETAIL_PICTURE"]);
} else {
$arNoPhoto[$key] = $value;
}
}
if (!empty($arFile['WIDTH']) && !empty($arFile['HEIGHT']))
{
....
} else {
$arWithPhoto[$key] = $value;
}