Both in_array(...$this->excludeWhenEmpty) and in_array(...$this->excludeWhenNull) omit the strict flag.
If you ever had numeric-ish keys, or someone passes integers, PHP can do weird comparisons. Safer:
in_array($snakeCasePropertyName, $this->excludeWhenEmpty, true)