Consistent use of isOfType