Attempting to retrieve values from undefined will throw a TypeError exception. This can be guarded against with the && operator:
e.g. flight.equipment && flight.equipment.model
Crockford, Douglas. JavaScript: The Good Parts (Kindle Location 449). O'Reilly Media. Kindle Edition.