Fix is_parent method for urls without subdomains