Add the function checkFolder to the main runonce.
Remove class_exists('Composer\Composer'), because it throws a error.