I think it's highly unlikely that Tom was not aware that he wouldn't be allowed to enter the museum without his parents.
Eg haldi, tað er sera ósannlíkt, at Tom ikki visti, at hann ikki fór at sleppa inn á savnið uttan foreldrini.