nicer 'ternery-ish' expression