This could be unreliable, since if the param value is something like an empty string, that would still be considered a "truthy" value and the first branch would execute. We could upgrade this to `if params[:category].present?`, which checks for both nil and empty/blank strings.