using occurs() for checking liveness of an indexed object