fixed a shoddy comparison hiding proper brace checks for else