Ошибка (Error): Call to a member function isMethodExists() on bool