More reliable error or empty check