[PropertyAccessor] Allow null value for a array

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #12482
| License       | MIT
| Doc PR        | -
I'm pretty sure that something has to be wrong with this condition. Can you add brackets somewhere around `||`?