Use parse_url() to check for port