Here, instead of passing "the key of a global array, pointing on the folder you wanna clean". Why not just using a simpler method like ->emptyFolder($pathToTheFolderToEmpty) ? Code will be clearer...