The contact structure does not provide information about whether a particular iCloud container matches. You are guaranteed that if the iCloud container is present, it will be of the CardDAV type. Otherwise, you do not know. If you need more and you have a good use case, write a bug report with Apple.
matt
source share