I think it is clearer nested as it is, especially with the weird condition check.