check common errors for empty