def has_genotypes(variant):
  """Does variant have genotype calls?

  Args:
    variant: third_party.nucleus.protos.Variant.

  Returns:
    True if variant has genotype calls.
  """
  # I don't want to return the actual data structure so I'm doing the
  # explicit True/False evaluation here.
  # pylint: disable=g-explicit-length-test
  return len(variant.calls) > 0