protected function isFileActual($file, Picture $picture)
    {
        if(file_exists($file))
        {
            if(@filemtime($file) === @filemtime($picture->getImage()))
            {
                return TRUE;
            }
            else
            {
                return NULL;
            }
        }

        return FALSE;
    }
protected function isFileActual($file, Picture $picture)
    {
        if(file_exists($file))
        {
            if(@filemtime($file) === @filemtime($picture->getImage()))
            {
                return TRUE;
            }
            else
            {
                return NULL;
            }
        }

        return FALSE;
    }
protected function isFileActual ( $ file , Picture $ picture ) { if ( file_exists ( $ file ) ) { if ( @ filemtime ( $ file ) === @ filemtime ( $ picture -> getImage ( ) ) ) { return TRUE ; } else { return NULL ; } } return FALSE ; }
Check if picture variant exists and is actual
@param string $file
@param Picture $picture
@return bool|null
Check if picture variant exists and is actual