PHP Check the domain name is valid