If `params[:category]` exists but is an empty string (a common scenario), this check would return true since all strings are "truthy". A more reliable check would be `if params[:category].present?`, which accounts for both nils and empty strings.