function hasUseStrict(list) {
  for (let i = 0; i < list.length; i++) {
    if (!list[i].isDirectivePrologue())
      return false;
    if (list[i].isUseStrictDirective())
      return true;
  }
  return false;
}
@param {Array.<ParseTree>} list
@return {boolean}