Как проверить, если метод не в классе в php

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