hasType

public boolean hasType()

Checks whether the 'type' field has been set, however the value could be null