checks if file is empty