check if series are empty in movingMedian