Could we not just check that `!data[:resource_collection].nil?` instead of keeping that `@treat_as_resource_collection` variable around?