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