$node->form_id doesn't exist? function mymodule_node_insert($node){
    if($node-&gt;form_id == 'whatever_node_form'){
        // do stuff
    }
}


Returns an error: 
Notice: Undefined property: stdClass::$form_id in mymodule_node_insert() (line 16 of /home/admin/public_html/website.com/sites/all/modules/mystuff/mystull.module).

I can clearly see the array dump of $node that it is indeed an object and it contains form_id. What am I doing wrong?
This code is actually correct. When checking for an object, it's always a good idea to use isset() to make sure the variable exists!

This code was adjusted to the following: 

function mymodule_node_insert($node){
  if (isset($node-&gt;form_id) &amp;&amp; ($node-&gt;form_id == 'whatever_node_form')) {
    // do stuff
  }
}