better clarification for the `_is_valid_hook` method so that we can detect when a hook contains extra data