Don't nest if value is falsy; repeat if array