Fix existence check on Register to a) work and b) be case-insensitive.