If the association is null the doing $entity->[something null]->property will give a fatal error. This is related to another exisiting ticket, though