I use a similar script on my server, where all the Workshop maps are stored in a table, similar to yours. It works just fine.
Have you tried this with other map addons? It could be that ttt_fastfood_a6 isn't the name of the actual map file, for some reason or another, but I doubt that.
You do need this script in /lua/autorun/server, as iViscosity pointed out, but once there, your code ought to work.
a nitpick: Instead of using not a == b, you can use ~=, the "not equal to" operator. Doubt that's causing any issues, but hey.