Having your ifs in the right place.