WipeEmpty :: removeEmptyParents: Bitrix method

      
<?php 
//  Bitrix\Translate\Controller\Editor\WipeEmpty :: removeEmptyParents()
//  /dist/bitrix/modules/translate/lib/controller/editor/wipeempty.php:239

    
private function removeEmptyParents($langFullPath)
    {
        try
        {
            
$langFile Translate\File::instantiateByPath($langFullPath);
            if (
$langFile instanceof Translate\File)
            {
                return 
$langFile->removeEmptyParents();
            }
        }
        catch (
Main\ArgumentException $ex)
        {
        }

        return 
false;
    }