Jak sprawdź, czy metoda nie jest w klasie w PHP

method_exists(object|string $object_or_class, string $method): bool
Mohamad