I'm going to switch the order of these 2 ifs, as that reads a bit more natural.