You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: web_hooks_helper.rb
    path of file: ./repos/gitlabhq/app/helpers/web_hooks
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module WebHooks
  module WebHooksHelper
    def show_project_hook_failed_callout?(project:)
      return fa
    
    def show_hook_failed_callout?(object)
      return false unless current_user

      return false unless can_access_web_hooks?(object)

      # Assumes include of Users::CalloutsHelper
      return false if web_hook_disabled_dismissed?(object)

      object.fetch_web_hook_failure
    end