Remove redundant file check