check file if not empty