Add condition for empty errors.