Yes, that is supposed to be a check for default HTTPS services which want to change the port like usercorner, captiveportal or webadmin. Nothing else :). That's why you cannot use it as general rule of thumb for validation.

This makes the code clearer and easy to test. Maintainable if we maintain the unit tests.