Better if statement shorthand for single lines