If you remove this, and params[:search_code].present? returns false, this method will return nil, is that intended behaviour?