Sanitize $_GET variable when comparing

No, it’s not necessary to sanitise in this case.

If you were redirecting to the value directly, or outputting it in some way, you would definitely need to, but since you’re just comparing its value against a white list (essentially) no sanitising or escaping is necessary.