Returns true if the unit is connected to the game (i.e. not offline).
isOnline = UnitIsConnected(unit)