hasType() convenience method