Some type checks on arguments for _removeHook()