Should this be ```associated_entity_type is not None``` to avoid an error is somebody mistakenly configured ''?