Syntax fixes

Removed if statement, I didn't know what it was trying to do. It also had a syntax error.
Added missing {