I doubt an AI would be stupid enough to write code like that without being explicitly prompted to do so. It's so... specific.

That specific nature would mean it would get caught by even the most cursory of code reviews.

Even if I was just "scanning my eyeballs over the code" without properly reading it, this would jump out as very odd and make me pause.