public static function interfaceExists($value, $message = null, $propertyPath = null)
{
if (!interface_exists($value)) {
$message = sprintf($message ?: 'Interface "%s" does not exist.', static::stringify($value));
throw static::createException($value, $message, static::INVALID_INTERFACE, $propertyPath);
}
return true;
}