CHECKS FOR FILE