ensure api input is uniformly arrays; only return values on POST if input exists