code: private boolean hasHeader(List<String> contents) {
          boolean headerValid = true;
          boolean statusFound = false;
          boolean typeFound = false;
  
          if (!headerSeparatorDemarcatesHeader(contents)) {
              return false;
          }
  
          for (String line : contents) {
              if (hasHeaderSeparator(line)) {
                  LOGGER.debug("Header separator found");
                  break;
              }
              if (isTypeProperty(line)) {
                  LOGGER.debug("Type property found");
                  typeFound = true;
              }
  
              if (isStatusProperty(line)) {
                  LOGGER.debug("Status property found");
                  statusFound = true;
              }
              if (!line.isEmpty() && !line.contains("=")) {
                  LOGGER.error("Property found without assignment [{}]", line);
                  headerValid = false;
              }
          }
          return headerValid && (statusFound || hasDefaultStatus()) && (typeFound || hasDefaultType());
      }
docs: Checks if the file has a meta-data header.
  
  @param contents Contents of file
  @return true if header exists, false if not