Thanks Leo. Hmmm, this seems to be up for improvements ;). Consider it a feature request if possible.
The Genesis Extender plugin works much much easier in these cases. Whenever I’m trying out php code and I know i can easily make a mistake, I always have Filezilla opened and I can open and correct the functions.php file (which contains all custom hooks and code) right away. It’s in the uploads/extender folder, adjust or revert code, save and the website is up and running again. Doing this the GP way is not really easy and quick.