Hmmm. I'm confused. So if a category is passed in, it is not a Location. But previously we turned it in to a location....

Perhaps simply creating a new variable named "category" (and assigning to it appropriately) would make this easier to read.