Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

You can skip the checking for level and then setting it, if it's not available. Instead you can (where you access it) give a default value, if it's not in the prefs:

prefs.getInteger("Level", 1);

I know it just saves two lines - but the more values you save, the easier it makes your life :)

Thanks for the tip ! ;)