make hasFile protected