Fixed incorrect reference to controller->isRest boolean