This looks unbalanced. Please surround with curly brackets, as suggested in the coding standards: http://make.wordpress.org/core/handbook/coding-standards/php/#brace-style