Walker class doesn't exist, stop execution 

The code after this if statement all requires the walker class. However if the walker class is not loaded (if you are using wp-cli for example), this code will fail.