private bool CheckConditions(LinkCondition[] conditions) { for (int i = 0; i < conditions.Length; ++i) { bool haveType = conditions[i].Type == ConditionType.Have; bool reallyHave = KeyStorage.Contains(conditions[i].KeyNumber); if (haveType != reallyHave) { return(false); } } return(true); }