Understand checking the scheme & host. Why is there a check for port. Port is optional if it is using default port for that scheme.