def _IsDuplicateInterestedUrl(bots_user_entity, url_key):
  """Checks if url_key exist in interested_urls.

  Args:
    bots_user_entity: bots_user entity (BotsUser).
    url_key: BotsUrl Entity to check for (db.Key).

  Returns:
    True if url_key exist in interested_urls, else False.
  """
  return str(url_key) in [str(x) for x in bots_user_entity.interested_urls]