Added a proper check if we have any hooks and added an option to run anyway