Always check that reverseAssociation exists before trying to reference its type.