You could also do:

```php
foreach ((array)$object->validator() as $validateField => $validateProperties) { 
  ...
}
```
As well.