A few CS issues:

- an extra space before ``=``
- useless braces around the condition
- the null check should use a strict comparison