Added has and clear methods for message fields.