Nicer logic for `platform` var