Same as above, should this be ```associated_entity_type is not None``` to avoid an error is somebody mistakenly configured ''?  I suppose the other clauses take care of it, but it does seem a little cleaner.