how to check for an invalid tree item

Hello,

the documentation to wxTreeCtrl says for

item=superbaum.GetLastChild()

" Returns the last child of the item (or an invalid tree item if this item has no children). "

But:
how can I check if item is an invalid item???

tnx

Harald