I'm not a fan of the nested bracketless ifs