I would prefer "foo or bar or both". It's clearer.