fix check for empty account