You wrote a single line if without curlys. It's a bug waiting to leak in.