It's fine to set type to null or to set it multiple times?