check if domain is valid before retrieving its properties