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