Checks to prevent empty files