isentity is true if the argument is an XML entity object, such as that returned from XPATH expressions etc.