In the context of a strict “whos online” feature you describe, aye, I agree with the why and what your implementation does. But this, in general, has already been discussed into the ground, past the mantle, drilling clean through the core then tunneling back out the other end into another land.