XMPP4r helper class

Hi,
can anybody explain me why when I’m trying to check if contact is online
using this code:

rec = Roster::Helper::RosterItem.new(‘[email protected]’).online?

I’m always receiving negative answer?