If your concern is that you have too many booleans then another option is a dictionary with key value pairs which do the same thing for instance;
var booleans_dict = {"key1": false, "key2: false, "key3": false}
change the key1 etc to words which mean something in your code and you can access them like this
func process():
if booleans_dict["key1"] == false:
do your stuff here
booleans_dict["key1"] = true
or you could use 0 and 1 rather than true and false if you wanted.