Bugfix, to make optional entity traits work

Search the whole package tree for the implementation of an optional entity trait, since the implementation will never be in the same package.
can't you just break when $found? seems rather pointless to continue.

```
if (($found = $required_entity_package->getPackageContent()->hasEntity($requirement)) === true) {
    break;
}
```