public function checkDynamic(\Phalcon\Http\Request\File $file = null, $directory, $permission = 0777)
    {
        if (is_dir($directory) === false && file_exists($directory) === false) {
            mkdir(rtrim($directory,'/') . DIRECTORY_SEPARATOR, $permission, true);
        }

        return true;
    }