protect TyphoonGenericStack against removing elements from empty array