These conditionals need braces. You should refer to the [cakephp code conventions](http://book.cakephp.org/2.0/en/contributing/cakephp-coding-conventions.html).