Check node type
if (arg(0)=='node' && is_numeric(arg(1)) && !arg(2)) { $node = node_load(arg(1)); if ($node->type == 'surgeon') { //do something } }