flatten for optional and stream why not