The 'if item in cart' functionality is only based on id of the current item, so this is not something that can be used to deal with this situation. What would you like to have occur if the user has a package of items then tries to add an individual item that is in that package?
You can use calculations to check for particular items, like the package, then do something based on this.