use Object.prototype.hasOwnProperty to detect one file if has the specific attribute