Convert nested ifs to cond