GenIndex.isNone

bool isNone()

Returns true if the index is invalid.