public static function isSectionInCatalog($iblockID, $url) {
$code = array_pop(array_filter(explode( '/', $url)));
$arFilter = array("IBLOCK_ID"=>$iblockID, "CODE" => $code);
$rsSections = CIBlockSection::GetList(array(),array('IBLOCK_ID' => $iblockID, '=CODE' => $code));
return ($rsSections->Fetch() !== false);
}