Reduce possibility to cause NullReferenceException