Avoiding null pointers when some properties are not defined.