Yeah, I mean you can set it by switches and what not as well. I COULD set them by map id and bypass the db but this was like a 20 minute idea for my little nephew.
As far as the "else" statements, I was using them for print() messages to see if I got the undesired result. Also, as for the include? thing, I'm not sure if it would throw an error if the id didn't exist. Maybe not. Anyway, I'll likely add to this at some point when I'm done organizing my socks lol.