Why nest ifs here? Why not just `&&` them together?