Implemented generic check for cart items