all of these if() with no {} scare me 

Just a comment. Not asking to change.