Combine two ifs into a single line