Simplify inline ifs