I would have preferred to use filters on `getProperties()`, but [not possible](https://bugs.php.net/bug.php?id=55559)