- using empty check instead of type check