Performance killer: calling FOFModel::getTotal() multiple times results in unnecessary queries when its result is zero.