You have a typo here, it should be `(` not `[`, `$` at the end is missing, also `!== null` isn't really required.