After you change the line above, to be consistent, this could then be
`return (!$preview && empty($errors));`