Neater logic, happier ifs