Changed to call collect_claims only when 'claims' is not an empty array.