Improved code in isMemberOfLobby.js