Remove unnecessary boolean variable from isUserOnline() method

The boolean variable was unused.