Check for url existence in construct function.