presence = presence || ($(item).length > 0 ? $(item).parent('li').attr('class') : 'offline');