static boolean isFileValid(File file) {
        return file != null && file.exists() && file.isFile() && file.length() > 0 && file.canRead();
    }
A file helper to make thing easier.

@author ChenSL
boxing/src/main/java/com/bilibili/boxing/utils/BoxingFileHelper.java