Prevent failure in cases where objects such as arrays are nil.