check for empty file