```ruby
class SearchResultsController < ApplicationController
  decorates_assigned :search_results, with: SearchResultCollectionDecorator

  def index
    if params[:query].present?
      @search_results = PerformCorrectiveSearch.new(params[:query], params[:page]).call

      if @search_results.any?
        render 'search_results/index_with_results'
      else
        render 'search_results/index_no_results'
      end
    end
  end

  private

  def display_search_box_in_header?
    false
  end
end
```

Use a guard clause instead of wrapping the code inside a conditional expression
user
```ruby
class SearchResultsController < ApplicationController
  decorates_assigned :search_results, with: SearchResultCollectionDecorator

  def index
    return if params[:query].blank?

    @search_results = PerformCorrectiveSearch.new(params[:query], params[:page]).call

    if @search_results.any?
      render 'search_results/index_with_results'
    else
      render 'search_results/index_no_results'
    end
  end

  private

  def display_search_box_in_header?
    false
  end
end
```
assistant