You can simply check for individual object type instead of check for collision using family.
If my understanding is correct, are you looking for some sort of way to identify the type of object (like using "instanceof" in Java) in family collision when such collision occur?