Deeply nested if statements are a code smell. Also, these if statements don't have alternate paths - is this ok?