Serverside check if file was empty