/// <summary>
 /// returns true if alias contains a child matching the given command
 /// </summary>
 /// <param name="alias">alias to cross-check children</param>
 /// <param name="command">command to match</param>
 /// <returns>true if command matches a child</returns>
 private static bool IsAStateCommand(ToggleAlias toggleAlias, Command command)
 {
     bool result = false;
     // check to see if the command starts with the same prefix
     // saves processing time iterating unnecessarilly
     if (command.Name.BeginsWith(toggleAlias.Name))
     {
         // iterate through the children to see if there's an alias match defined
         foreach (Alias child in toggleAlias.Children.Keys)
         {
             if (child.ToString().Equals(command.ToString()))
             {
                 result = true;
             }
         }
     }
     return result;
 }