silverstripe-scienceninjas/sapphire — comment on commit 2dcd700d1ff9d87d77e9ede54e117cc5e6c36b3a
File: admin/code/CMSMenu.php line 235
By slindqvist:

would typically make a guard clause, and bail out of the function

if(!$subNavController) {
return $l2MenuItems;
}