Because IsEmpty() promises not to change the object, The compiler will allow you to invoke this method on a const object (that is, an object whose contents have been declared to be...well...constant). So if you declare a const TextView object, thus:

const TextView aConstView

you could invoke the (const) IsEmpty() method:

bool empty_view = aConstView.IsEmpty(); // compiler will allow this