Fix invalid? method

Return true when the file is empty