Two ifs does not make sense