Don't add functions to hooks unless they exist