This can be simplified to `if @search_term.present?`, as in the `master` branch.