oops: invalid else in tenary op