def has_targets(available, required):
 grouped = group_list_of_dict(available)
 for (value, field) in required:
  if ((field not in grouped) or (value not in grouped[field])):
   return False
 return True

def has_targets ( available , required ) : grouped = group_list_of_dict ( available ) for ( value , field ) in required : if ( ( field not in grouped ) or ( value not in grouped [ field ] ) ) : return False return True
helper method to determine if mount tager requested already exists .