Unnecessary check for file