Design objects to make invalid state impossible - use a more appropriate representation such as an enum-based state machine.
Design objects to make invalid state impossible - rather than litter the code with null/undefined checks common with Primitive Obsession