Use SESSION.channels(channel).canJoin instead of checking for members