public static function methodExists($value, $object): bool
    {
        if (!static::isStringCastable($value)) {
            return false;
        }

        return method_exists($object, (string) $value);
    }