I’m a self-taught developer myself 🙂 I think it’s quite common in our line of work..
Sorry I think this is more like it:
if (!empty($_GET['company'])) {
// we got company....
}
The URL you are directed to is probably not correct if you’re supposed to end up on the regular posts archive.. You can try switching the $archive variable out and replace it with a “hardcoded” url to the archive page.. Right not it seems like it’s trying to go to the archive of companies.