Check if local hook exists before running it