I made this a long time ago. I am not trying to make excuses, but i could probably do better now.
Why is it better? There is a glitch with Skript where when i delete variables it keeps the value when something trys to look at it.
Even if it did work, then they would do the exact same thing.
And, if you want me to add more stuff (you said "Less function"), then suggest it!