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