>>30063427/VP/ certified hacker here (I prefer the term "h4ck3r" myself), after some decompiling, port switching and bus addressing (technical hacker terms, you don't need to understand), I can indeed confirm that Mega Evolutions are not in Sun and Moon's coding.
It's a negative boolean variable, as we h4ck3rs like to call it.