variables: add an is_online constant

Might be useful and isn't that much code.