Using array_reduce instead of foreach to get feed