checked that errors isset before evaluating truthiness