This is a `dict`, right? Maybe:

    return serializer.data[0] if limit == 1 else serializer.data

I'm sure @mattbasta would appreciate the simpler return value.