Same here - also, the call to `hasMetadataFor` shouldn't really be used - use `getClassMetadata` directly and let it fail otherwise, no?