How can I optimize my code: multiple boolean checks

I’ve got a level select screen where the player can choose between 1 of the 7 levels of my game.
If he finishes a level a boolean (LEVELxFINISHED = true;) gets set and a check mark is drawn over the level in the level select screen and the player is only able to choose from the remaining levels.

If he finishes ALL level, for now I want all boolean for if the leve is finished to be reset.

I’m doing this with this code.

if (LEVEL1FINISHED && LEVEL2FINISHED &&
				LEVEL3FINISHED && LEVEL4FINISHED &&
				LEVEL5FINISHED && LEVEL6FINISHED &&
				LEVEL7FINISHED ) {resetLevels();}

I was wondering is there is a way to automate/optimize this code.
It works fine, but imagine i would have had like 40 levels…
Would be nice to know how to do this check with some kind of for loop.