Echo " "; fixes evaluation error

For some reason, I have an if statement that is evaluating incorrectly. Wierd thing is, if I put an echo " “; or a die (” "); anywhere in the script, it evaluates correctly and the script works perfectly. Does anybody know why the heck this is? Thanks