internal bool Remove(MegaloScriptModel model, MegaloScriptModelObjectHandle conditionHandle) { int index = mConditions.IndexOf(conditionHandle); if (index >= 0) { RemoveAt(index); if (mConditions.Count == 0) { model.HandleRemoval(this); } } return(index >= 0); }