unify the foldable and nullable