checks for empty file