simplify per-client keepalive state checks