When comparing to `null`, you should use `!==`. Also, we use `null !== $array` in Symfony.