fixed error (sometimes there's no students yet, so the room doesn't exist, so you can't get its keys and therefore you also cannot get the length of the array that would've been returned by Object.keys()