public static function methodExists($value, $object, $message = null, $propertyPath = null)
{
self::isObject($object, $message, $propertyPath);
if (!method_exists($object, $value)) {
$message = sprintf($message ?: 'Expected "%s" does not exist in provided object.', static::stringify($value));
throw static::createException($value, $message, static::INVALID_METHOD, $propertyPath);
}
return true;
}