Add check $folder