Simplify checks if file is empty