def has_errors(build):
  """Checks if there are errors present.

  Args:
    build: the whole build object

  Returns:
    True if has errors, else False
  """
  return "errors" in build and len(build["errors"])