For example, I have 'apple', 'orange' and 'banana' types. They all extend the 'fruit' type.
How would I check is a certain node that's of type 'apple' also a 'fruit'?
Obviously, I know that if it's a 'orange', it's also a 'fruit'.
But I need to determine that it's a 'fruit' regardless of this, since new fruit can be added in the future, and I should not have any extra work to do after adding it.
Thanks,
Lista.