renamed Valid to IsValid