validDataTypes(), function ($carry, $supportedType) use ($dataType) { return $carry || ($dataType->getName() == $supportedType->getName()) || ($dataType->isSubclassOf($supportedType->getName())); }, false ); } }