I think this check would be better off in SomethingLeft() (see holder.kod), though I'm not sure if the caster is logged off at the point that function is called.  Can you try it and see?