public static function isObject($value, $message = null, $propertyPath = null)
{
if (!is_object($value)) {
$message = sprintf($message ?: 'Provided "%s" is not a valid object.', static::stringify($value));
throw static::createException($value, $message, static::INVALID_OBJECT, $propertyPath);
}
return true;
}