Handle empty ast lists