Hamburgers don't deserve all the scorn they get as a cheap food. For its price (depending on location) it's a cheap and dense source of protein. It's one of the most popular examples of a "loss leader", a product that attracts customers but actually loses the company money on each sale.
The empty calories and unhealthiness comes from some optional condiments and bun and not the burger itself, or the fries and drink that accompany it.
There's often tomatoes and lettuce on them, sometimes onion, and those are quite good for you. Mustard doesn't have much to it, but it's extremely low in calories. Ketchup is probably the worst thing as it's full of added sugar or corn syrup unless you get some fancy type, but there's generally so little of it that I think it can be forgiven. Some people eat them with mayonnaise, and that's definitely unhealthy.
It's recommended to limit the amount of red meat you consume, but unless you eat a burger every day I don't think it would matter. So, get a good whole wheat bun or fancy bread and it's actually a pretty great food.