Yeah I know lol its awful.
Such as if id isn't defined display error and don't continue rest of code'If id doesn't exist in db display erroretc.
So say someone didn't enter a id for a game it would echo an error and publish the rest of the template and then exit.