You just need to check if file please_resize_me exists. If it does then resizing has not been done yet. And when it doesn't exist then you need to extract archive.
But why do you even need this thing? Can't you just restore some initial config with LE restore function?