one line of conditions ~ not two

The tab was still messed up after the for loop and there are 2 lines of conditions whereas only 1 line of multiple conditions using "&" is necessary. I also put the key of "code" for the initial empty check only because the next condition depends on it.

Signed-off-by: -Underdog- github.underdog@gmail.com