refactor isRoomExist method into ElecDetail class