Add check for non-empty files