Remove unnecessary else statements  in examples