non-strict equals for the null check

This will allow it to match on undefined as well