public function canPropertyBeExported($k) { if ('requiredRegex' === $k) { if (null === $this->requiredRegex) { return false; } } return true; }